web/src/types/Service.ts

42 lines · 707 bytes

 1
 2
 3export interface ShortService {
 4  name: string;
 5  description: string;
 6  url: string;
 7}
 8
 9export interface Service {
10  name: string;
11  description: string;
12  url: string;
13  github?: string;
14  icon?: string;
15  followWith?: string;
16  securityAudited?: boolean;
17  openSource?: boolean;
18  acceptsCrypto?: boolean;
19}
20
21export interface Section {
22  name: string;
23  services: Service[];
24  intro?: string;
25  notableMentions?: ShortService[] | string;
26  furtherInfo?: string;
27  wordOfWarning?: string;
28  alternativeTo?: string[];
29}
30
31export interface Category {
32  name: string;
33  sections: Section[];
34}
35
36
37export interface AwesomePrivacy {
38  categories: Array<{
39    name: string;
40    sections: Array<Section>;
41  }>;
42}