feat: ts support, artist part

This commit is contained in:
a632079
2020-09-05 00:10:15 +08:00
parent f89bd19899
commit 585592faa9
8 changed files with 103 additions and 0 deletions

61
module_types/artisit_list.d.ts vendored Normal file
View File

@ -0,0 +1,61 @@
import { RequestBaseConfig } from './base'
export interface ArtistListRequestConfig extends RequestBaseConfig {
area: '-1' | '7' | '96' | '8' | '16' | '0'
initial?:
| 'a'
| 'b'
| 'c'
| 'd'
| 'e'
| 'f'
| 'g'
| 'h'
| 'i'
| 'j'
| 'k'
| 'l'
| 'm'
| 'n'
| 'o'
| 'p'
| 'q'
| 'r'
| 's'
| 't'
| 'u'
| 'v'
| 'w'
| 'x'
| 'y'
| 'z'
| 'A'
| 'B'
| 'C'
| 'D'
| 'E'
| 'F'
| 'G'
| 'H'
| 'I'
| 'J'
| 'K'
| 'L'
| 'M'
| 'N'
| 'O'
| 'P'
| 'Q'
| 'R'
| 'S'
| 'T'
| 'U'
| 'V'
| 'W'
| 'X'
| 'Y'
| 'Z'
offset?: number
limit?: number
type?: '1' | '2' | '3'
}

5
module_types/artist_desc.d.ts vendored Normal file
View File

@ -0,0 +1,5 @@
import { RequestBaseConfig } from './base'
export interface ArtistDescRequestConfig extends RequestBaseConfig {
id: string
}

7
module_types/artist_mv.d.ts vendored Normal file
View File

@ -0,0 +1,7 @@
import { RequestBaseConfig } from './base'
export interface ArtistMVRequestConfig extends RequestBaseConfig {
artistId: string
limit: number
offset: number
}

8
module_types/artist_song.d.ts vendored Normal file
View File

@ -0,0 +1,8 @@
import { RequestBaseConfig } from './base'
export interface ArtistSongRequestConfig extends RequestBaseConfig {
id: string
order?: 'hot' | 'time'
offset?: number
limit?: number
}

6
module_types/artist_sub.d.ts vendored Normal file
View File

@ -0,0 +1,6 @@
import { RequestBaseConfig } from './base'
export interface ArtistSubRequestConfig extends RequestBaseConfig {
artistId: string
t: 'sub' | 'unsub'
}

6
module_types/artist_sublist.d.ts vendored Normal file
View File

@ -0,0 +1,6 @@
import { RequestBaseConfig } from './base'
export interface ArtistSubListRequestConfig extends RequestBaseConfig {
limit?: number
offset?: number
}

5
module_types/artist_top_song.d.ts vendored Normal file
View File

@ -0,0 +1,5 @@
import { RequestBaseConfig } from './base'
export interface ArtistTopSongRequestConfig extends RequestBaseConfig {
id: string
}

5
module_types/artists.d.ts vendored Normal file
View File

@ -0,0 +1,5 @@
import { RequestBaseConfig } from './base'
export interface ArtistsRequestConfig extends RequestBaseConfig {
id: string
}