fixed lint error

This commit is contained in:
binaryify 2020-10-04 22:16:15 +08:00
parent 1d880bede7
commit 38f468661b

157
interface.d.ts vendored
View File

@ -152,58 +152,58 @@ export function artist_list(
params: { params: {
area: ArtistArea area: ArtistArea
initial?: initial?:
| 'a' | 'a'
| 'b' | 'b'
| 'c' | 'c'
| 'd' | 'd'
| 'e' | 'e'
| 'f' | 'f'
| 'g' | 'g'
| 'h' | 'h'
| 'i' | 'i'
| 'j' | 'j'
| 'k' | 'k'
| 'l' | 'l'
| 'm' | 'm'
| 'n' | 'n'
| 'o' | 'o'
| 'p' | 'p'
| 'q' | 'q'
| 'r' | 'r'
| 's' | 's'
| 't' | 't'
| 'u' | 'u'
| 'v' | 'v'
| 'w' | 'w'
| 'x' | 'x'
| 'y' | 'y'
| 'z' | 'z'
| 'A' | 'A'
| 'B' | 'B'
| 'C' | 'C'
| 'D' | 'D'
| 'E' | 'E'
| 'F' | 'F'
| 'G' | 'G'
| 'H' | 'H'
| 'I' | 'I'
| 'J' | 'J'
| 'K' | 'K'
| 'L' | 'L'
| 'M' | 'M'
| 'N' | 'N'
| 'O' | 'O'
| 'P' | 'P'
| 'Q' | 'Q'
| 'R' | 'R'
| 'S' | 'S'
| 'T' | 'T'
| 'U' | 'U'
| 'V' | 'V'
| 'W' | 'W'
| 'X' | 'X'
| 'Y' | 'Y'
| 'Z' | 'Z'
type?: ArtistType type?: ArtistType
} & MultiPageConfig & } & MultiPageConfig &
RequestBaseConfig, RequestBaseConfig,
@ -820,7 +820,11 @@ export function playlist_cover_update(
): Promise<Response> ): Promise<Response>
export function playlist_create( export function playlist_create(
params: { name: string; privacy: 0 | 10, type?: PlaylistType } & RequestBaseConfig, params: {
name: string
privacy: 0 | 10
type?: PlaylistType
} & RequestBaseConfig,
): Promise<Response> ): Promise<Response>
export function playlist_delete( export function playlist_delete(
@ -900,9 +904,7 @@ export function rebind(
} & RequestBaseConfig, } & RequestBaseConfig,
): Promise<Response> ): Promise<Response>
export function recommend_resource( export function recommend_resource(params: RequestBaseConfig): Promise<Response>
params: RequestBaseConfig,
): Promise<Response>
export function recommend_songs(params: RequestBaseConfig): Promise<Response> export function recommend_songs(params: RequestBaseConfig): Promise<Response>
@ -929,9 +931,7 @@ export const enum ResourceType {
video = 5, video = 5,
event = 6, event = 6,
} }
type PlaylistType = 'NROMAL' | 'VIDEO'; type PlaylistType = 'NROMAL' | 'VIDEO'
export function resource_like( export function resource_like(
params: { params: {
@ -962,9 +962,7 @@ export function search_default(params: RequestBaseConfig): Promise<Response>
export function search_hot(params: RequestBaseConfig): Promise<Response> export function search_hot(params: RequestBaseConfig): Promise<Response>
export function search_hot_detail( export function search_hot_detail(params: RequestBaseConfig): Promise<Response>
params: RequestBaseConfig,
): Promise<Response>
export function search_multimatch( export function search_multimatch(
params: { type?: number; keywords: string } & RequestBaseConfig, params: { type?: number; keywords: string } & RequestBaseConfig,
@ -1214,27 +1212,39 @@ export function weblog(
): Promise<Response> ): Promise<Response>
export function playlist_mylike( export function playlist_mylike(
params: { time?: number | string, limit: number | string } & RequestBaseConfig, params: {
time?: number | string
limit: number | string
} & RequestBaseConfig,
): Promise<Response> ): Promise<Response>
export function playlist_track_add( export function playlist_track_add(
params: { pid?: number | string, ids: number | string } & RequestBaseConfig, params: { pid?: number | string; ids: number | string } & RequestBaseConfig,
): Promise<Response> ): Promise<Response>
export function playlist_track_delete( export function playlist_track_delete(
params: { pid?: number | string, ids: number | string } & RequestBaseConfig, params: { pid?: number | string; ids: number | string } & RequestBaseConfig,
): Promise<Response> ): Promise<Response>
export function comment_new( export function comment_new(
params: { type?: number | string, id: number | string, pageNo?: number | string, pageSize?: number | string, sortType?: number | string } & RequestBaseConfig, params: {
type?: number | string
id: number | string
pageNo?: number | string
pageSize?: number | string
sortType?: number | string
} & RequestBaseConfig,
): Promise<Response> ): Promise<Response>
export function calendar( export function calendar(
params: { startTime?: number | string, endTime: number | string } & RequestBaseConfig, params: {
startTime?: number | string
endTime: number | string
} & RequestBaseConfig,
): Promise<Response> ): Promise<Response>
export function playlist_video_recent( export function playlist_video_recent(
params: {} & RequestBaseConfig, params: RequestBaseConfig,
): Promise<Response> ): Promise<Response>
export function user_binding( export function user_binding(
@ -1242,9 +1252,12 @@ export function user_binding(
): Promise<Response> ): Promise<Response>
export function user_replacephone( export function user_replacephone(
params: { phone: number | string, captcha: number | string, oldcaptcha: number | string, countrycode?: number | string } & RequestBaseConfig, params: {
phone: number | string
captcha: number | string
oldcaptcha: number | string
countrycode?: number | string
} & RequestBaseConfig,
): Promise<Response> ): Promise<Response>
export function user_safe( export function user_safe(params: RequestBaseConfig): Promise<Response>
params: {} & RequestBaseConfig,
): Promise<Response>