-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.d.ts
48 lines (44 loc) · 1.5 KB
/
index.d.ts
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
declare module 'anitomy-js' {
export interface AnitomyOptions {
allowed_delimiters?: string
ignored_strings?: string[]
parse_episode_number?: boolean
parse_episode_title?: boolean
parse_file_extension?: boolean
parse_release_group?: boolean
}
export interface AnitomyResult {
file_name: string
anime_season?: string
season_prefix?: string
anime_title?: string
anime_type?: string
anime_year?: string
audio_term?: string
device_compatibility?: string
episode_number?: string
episode_number_alt?: string
episode_prefix?: string
episode_title?: string
file_checksum?: string
file_extension?: string
language?: string
other?: string
release_group?: string
release_information?: string
release_version?: string
source?: string
subtitles?: string
video_resolution?: string
video_term?: string
volume_number?: string
volume_prefix?: string
unknown?: string
}
export function parse(input: string, options?: AnitomyOptions): Promise<AnitomyResult>
export function parseAsync(input: string, options?: AnitomyOptions): Promise<AnitomyResult>
export function parse(input: string[], options?: AnitomyOptions): Promise<AnitomyResult[]>
export function parseAsync(input: string[], options?: AnitomyOptions): Promise<AnitomyResult[]>
export function parseSync(input: string, options?: AnitomyOptions): AnitomyResult
export function parseSync(input: string[], options?: AnitomyOptions): AnitomyResult[]
}