diff options
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; + }>; +} |
