-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.d.ts
40 lines (36 loc) · 1.28 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
import AnimeMainInformation from './lib/interfaces/anime/MainInformation';
import AnimeCharactersAndStaff from './lib/interfaces/anime/CharactersAndStaff';
import MangaMainInformation from './lib/interfaces/manga/MainInformation';
import MangaCharacters from './lib/interfaces/manga/Characters';
import GenreAnimeByGenre from './lib/interfaces/genre/AnimeByGenre';
import GenreMangaByGenre from './lib/interfaces/genre/MangaByGenre';
declare module 'jikan-nodejs' {
export function itemById(
type: string,
mal_id: number,
): Promise<AnimeMainInformation | MangaMainInformation>;
namespace anime {
export function mainInformation(
mal_id: number,
): Promise<AnimeMainInformation>;
export function charactersAndStaff(
mal_id: number,
): Promise<AnimeCharactersAndStaff>;
}
namespace manga {
export function mainInformation(
mal_id: number,
): Promise<MangaMainInformation>;
export function characters(mal_id: number): Promise<MangaCharacters>;
}
namespace genre {
export function animesByGenre(
mal_id: number,
params?: { [Key: string]: number },
): Promise<GenreAnimeByGenre>;
export function mangasByGenre(
mal_id: number,
params?: { [Key: string]: number },
): Promise<GenreMangaByGenre>;
}
}