diff options
| author | 2025-12-26 22:39:23 +0800 | |
|---|---|---|
| committer | 2025-12-26 22:39:23 +0800 | |
| commit | 32ca410f4edbff578d71781d943c41573912f476 (patch) | |
| tree | 49f7e1e5602657d23945082fe273fc4802959a40 /scripts/types.ts | |
Initial commitmain
Diffstat (limited to 'scripts/types.ts')
| -rw-r--r-- | scripts/types.ts | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/scripts/types.ts b/scripts/types.ts new file mode 100644 index 0000000..da11cd4 --- /dev/null +++ b/scripts/types.ts @@ -0,0 +1,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; + }>; +} |
