-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.d.ts
55 lines (52 loc) · 1.07 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
49
50
51
52
53
54
55
interface ProfileImage {
url: string;
name: string;
key: string;
alt: unknown;
isVideo: boolean;
}
interface GalleryImagesInfo {
url: string;
name: string;
key: string;
alt?: string | undefined;
}
interface GalleryImages {
talent: GalleryImagesInfo[];
artworks: GalleryImagesInfo[];
fan_arts: GalleryImagesInfo[];
}
interface ResponseDetail {
name: string;
images: {
profile: ProfileImage[];
gallery: GalleryImages;
};
original_name: string;
nick_name: string[];
debut_date: Date;
character_designer: string[];
affiliation: string;
channel: string[];
social_media: string[];
official_website: string[];
gender: string;
age?: string | undefined;
birthday: string;
height: string;
weight: string;
zodiac_sign: string;
emoji: string;
}
export class Hololive {
constructor(charName: string);
baseURL: string;
opt: {
name: string;
};
data?: ResponseDetail | undefined;
init(): Promise<Hololive>;
getDetail(): Promise<ResponseDetail>;
getGallery(): Promise<GalleryImages>;
getRestPfpURL(): Promise<string>;
}