multi-downloader-nx/@types/downloaderTypes.d.ts
AnimeDL 146c5f10a9 Allow --syncTiming to work on all files
Forgive me father for I have sinned (this code with it's "temporary" solutions).

This maps all downloaded "versions" so that each version can have it's delay applied as needed
2024-10-07 20:53:23 -07:00

37 lines
No EOL
713 B
TypeScript

import type { Font, MergerInput, SubtitleInput } from './modules/module.merger';
import type { LanguageItem } from '../modules/module.langsData';
export type sxItem = {
language: LanguageItem,
path: string,
file: string
title: string,
fonts: Font[]
}
export type DownloadedMedia = {
type: 'Video',
lang: LanguageItem,
path: string,
uncut?: boolean,
isPrimary?: boolean
} | {
type: 'Audio',
lang: LanguageItem,
path: string,
uncut?: boolean,
isPrimary?: boolean
} | {
type: 'Chapters',
lang: LanguageItem,
path: string
} | ({
type: 'Subtitle',
signs?: boolean,
cc: boolean
} & sxItem )
export type DownloadedMediaMap = {
version: string;
files: DownloadedMedia[];
}