awesome-privacy/web/src/types/Service.ts

43 lines
707 B
TypeScript

export interface ShortService {
name: string;
description: string;
url: string;
}
export interface Service {
name: string;
description: string;
url: string;
github?: string;
icon?: string;
followWith?: string;
securityAudited?: boolean;
openSource?: boolean;
acceptsCrypto?: boolean;
}
export interface Section {
name: string;
services: Service[];
intro?: string;
notableMentions?: ShortService[] | string;
furtherInfo?: string;
wordOfWarning?: string;
alternativeTo?: string[];
}
export interface Category {
name: string;
sections: Section[];
}
export interface AwesomePrivacy {
categories: Array<{
name: string;
sections: Array<Section>;
}>;
}