summaryrefslogtreecommitdiffstats
path: root/scripts/types.ts
blob: da11cd4af331eeea2d4863283a6bd26e6e46b03b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Type definitions for config.json
export interface ExtensionConfig {
    source: string;
    name: string;
    path: string;
    category: 'mihon' | 'aniyomi';
    commit?: string;
}

export interface Config {
    github: {
        owner: string;
        repo: string;
        branch: string;
    };
    domains: string[];
    directories: {
        output: string;
        extensions: string;
    };
    filesToCopy: string[];
}

export interface ExtensionSources {
    [category: string]: Array<{
        source: string;
        name: string;
        path: string;
        commit?: string;
    }>;
}