Merge pull request #1603 from DawningW/master

补全乐谱等API的interface
This commit is contained in:
binaryify 2022-09-07 16:39:36 +08:00 committed by GitHub
commit feaf083dfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

30
interface.d.ts vendored
View File

@ -1056,6 +1056,17 @@ export function song_url(
params: { id: string | number; br?: string | number } & RequestBaseConfig,
): Promise<Response>
export const enum SoundQualityType {
standard = 'standard',
exhigh = 'exhigh',
lossless = 'lossless',
hires = 'hires',
}
export function song_url_v1(
params: { id: string | number; level: SoundQualityType } & RequestBaseConfig,
): Promise<Response>
export function top_album(
params: {
area?: AlbumListArea
@ -1623,3 +1634,22 @@ export function vip_timemachine(
limit?: number | string
} & RequestBaseConfig,
): Promise<Response>
export function song_wiki_summary(
params: {
id: number | string
} & RequestBaseConfig,
): Promise<Response>
export function sheet_list(
params: {
id: number | string
abTest?: 'a' | 'b'
} & RequestBaseConfig,
): Promise<Response>
export function sheet_preview(
params: {
id: number | string
} & RequestBaseConfig,
): Promise<Response>