Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #928 from YXL76/master
Browse files Browse the repository at this point in the history
更新 TypeScript 声明
  • Loading branch information
Binaryify authored Sep 13, 2020
2 parents 5fd859f + bfece83 commit 4343260
Show file tree
Hide file tree
Showing 126 changed files with 233 additions and 240 deletions.
1 change: 0 additions & 1 deletion module/send_text.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
module.exports = (query, request) => {
query.cookie.os = 'pc'
const data = {
id: query.playlist,
type: 'text',
msg: query.msg,
userIds: '[' + query.user_ids + ']',
Expand Down
2 changes: 1 addition & 1 deletion module_types/album.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { RequestBaseConfig } from './base'

export interface AlbumRequestConfig extends RequestBaseConfig {
id: string
id: string | number
}
2 changes: 1 addition & 1 deletion module_types/album_detail.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { RequestBaseConfig } from './base'

export interface AlbumDetailRequestConfig extends RequestBaseConfig {
id: string
id: string | number
}
2 changes: 1 addition & 1 deletion module_types/album_detail_dynamic.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { RequestBaseConfig } from './base'

export interface AlbumDetailDynamicRequestConfig extends RequestBaseConfig {
id: string
id: string | number
}
4 changes: 2 additions & 2 deletions module_types/album_list.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { RequestBaseConfig } from './base'

export interface AlbumListRequestConfig extends RequestBaseConfig {
limit?: number // 默认 30
offset?: number // 默认 0
limit?: string | number // 默认 30
offset?: string | number // 默认 0
area?: 'ALL' | 'ZH' | 'EA' | 'KR' | 'JP' // 默认 ALL
type: string
}
4 changes: 2 additions & 2 deletions module_types/album_list_style.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { RequestBaseConfig } from './base'

export interface AlbumListStyleRequestConfig extends RequestBaseConfig {
limit?: number // 默认 10
offset?: number // 默认 0
limit?: string | number // 默认 10
offset?: string | number // 默认 0
area?: 'Z_H' | 'E_A' | 'KR' | 'JP' // 默认 ALL
}
4 changes: 2 additions & 2 deletions module_types/album_new.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { RequestBaseConfig } from './base'

export interface AlbumNewRequestConfig extends RequestBaseConfig {
limit?: number // 默认 30
offset?: number // 默认 0
limit?: string | number // 默认 30
offset?: string | number // 默认 0
area?: 'ALL' | 'ZH' | 'EA' | 'KR' | 'JP' // 默认 ALL
}
6 changes: 3 additions & 3 deletions module_types/album_songsaleboard.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { RequestBaseConfig } from './base'

export interface AlbumSongSaleBoardRequestConfig extends RequestBaseConfig {
albumType: 0 | 1 // 0 为数字专辑,1 为数字单曲
type: 'daily' | 'week' | 'year' | 'total'
year?: string // 年份,默认本年。 type 为 year 时有效
albumType?: 0 | 1 // 0 为数字专辑,1 为数字单曲
type?: 'daily' | 'week' | 'year' | 'total'
year?: string | number // 年份,默认本年。 type 为 year 时有效
}
2 changes: 1 addition & 1 deletion module_types/album_sub.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { RequestBaseConfig } from './base'

export interface AlbumSubRequestConfig extends RequestBaseConfig {
id: string
id: string | number
t: 1 | 0
}
4 changes: 2 additions & 2 deletions module_types/album_sublist.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { RequestBaseConfig } from './base'

export interface AlbumSubListRequestConfig extends RequestBaseConfig {
limit: number // 默认: 25
offset: number // 默认: 0
limit: string | number // 默认: 25
offset: string | number // 默认: 0
}
6 changes: 3 additions & 3 deletions module_types/artist_album.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { RequestBaseConfig } from './base'

export interface ArtistAlbumRequestConfig extends RequestBaseConfig {
id: string
limit?: number // 默认 30
offset?: number // 默认 0
id: string | number
limit?: string | number // 默认 30
offset?: string | number // 默认 0
}
2 changes: 1 addition & 1 deletion module_types/artist_desc.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { RequestBaseConfig } from './base'

export interface ArtistDescRequestConfig extends RequestBaseConfig {
id: string
id: string | number
}
4 changes: 2 additions & 2 deletions module_types/artist_list.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export interface ArtistListRequestConfig extends RequestBaseConfig {
| 'X'
| 'Y'
| 'Z'
offset?: number
limit?: number
offset?: string | number
limit?: string | number
type?: '1' | '2' | '3'
}
6 changes: 3 additions & 3 deletions module_types/artist_mv.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { RequestBaseConfig } from './base'

export interface ArtistMVRequestConfig extends RequestBaseConfig {
artistId: string
limit: number
offset: number
id: string | number
limit: string | number
offset: string | number
}
6 changes: 3 additions & 3 deletions module_types/artist_songs.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { RequestBaseConfig } from './base'

export interface ArtistSongsRequestConfig extends RequestBaseConfig {
id: string
id: string | number
order?: 'hot' | 'time'
offset?: number
limit?: number
offset?: string | number
limit?: string | number
}
2 changes: 1 addition & 1 deletion module_types/artist_sub.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { RequestBaseConfig } from './base'

export interface ArtistSubRequestConfig extends RequestBaseConfig {
artistId: string
id: string | number
t: 1 | 0
}
4 changes: 2 additions & 2 deletions module_types/artist_sublist.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { RequestBaseConfig } from './base'

export interface ArtistSubListRequestConfig extends RequestBaseConfig {
limit?: number
offset?: number
limit?: string | number
offset?: string | number
}
2 changes: 1 addition & 1 deletion module_types/artist_top_song.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { RequestBaseConfig } from './base'

export interface ArtistTopSongRequestConfig extends RequestBaseConfig {
id: string
id: string | number
}
2 changes: 1 addition & 1 deletion module_types/artists.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { RequestBaseConfig } from './base'

export interface ArtistsRequestConfig extends RequestBaseConfig {
id: string
id: string | number
}
2 changes: 1 addition & 1 deletion module_types/banner.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { RequestBaseConfig } from './base'

export interface BannerRequestConfig extends RequestBaseConfig {
type: 0 | 1 | 2 | 3
type?: 0 | 1 | 2 | 3
}
6 changes: 3 additions & 3 deletions module_types/cloudsearch.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { RequestBaseConfig } from './base'

export interface CloudSearchRequestConfig extends RequestBaseConfig {
keywords: string
type: 1 | 10 | 100 | 1000 | 1002 | 1004 | 1006 | 1009 | 1014
limit?: number
offset?: number
type?: 1 | 10 | 100 | 1000 | 1002 | 1004 | 1006 | 1009 | 1014
limit?: string | number
offset?: string | number
}
6 changes: 3 additions & 3 deletions module_types/comment.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { RequestBaseConfig } from './base'

export interface CommentRequestConfig extends RequestBaseConfig {
id: string
id: string | number
type: 0 | 1 | 2 | 3 | 4 | 5 | 6
t: 1 | 2 | 0
threadId?: string
content?: string
commentId?: string
content?: string | number
commentId?: string | number
}
8 changes: 4 additions & 4 deletions module_types/comment_album.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { RequestBaseConfig } from './base'

export interface CommentAlbumRequestConfig extends RequestBaseConfig {
id: string
limit?: number
offset?: number
before?: number
id: string | number
limit?: string | number
offset?: string | number
before?: string | number
}
8 changes: 4 additions & 4 deletions module_types/comment_dj.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { RequestBaseConfig } from './base'

export interface CommentDjRequestConfig extends RequestBaseConfig {
id: string
limit?: number
offset?: number
before?: number
id: string | number
limit?: string | number
offset?: string | number
before?: string | number
}
6 changes: 3 additions & 3 deletions module_types/comment_event.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { RequestBaseConfig } from './base'

export interface CommentEventRequestConfig extends RequestBaseConfig {
threadId: string
limit?: number
offset?: number
before?: number
limit?: string | number
offset?: string | number
before?: string | number
}
8 changes: 4 additions & 4 deletions module_types/comment_floor.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { RequestBaseConfig } from './base'

export interface CommentFloorRequestConfig extends RequestBaseConfig {
id: string
parentCommentId: string
id: string | number
parentCommentId: string | number
type: 0 | 1 | 2 | 3 | 4 | 5
limit?: number
time?: number
limit?: string | number
time?: string | number
}
8 changes: 4 additions & 4 deletions module_types/comment_hot.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { RequestBaseConfig } from './base'

export interface CommentHotRequestConfig extends RequestBaseConfig {
id: string
id: string | number
type: 0 | 1 | 2 | 3 | 4 | 5
offset?: number
limit?: number
before?: number
offset?: string | number
limit?: string | number
before?: string | number
}
4 changes: 2 additions & 2 deletions module_types/comment_like.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { RequestBaseConfig } from './base'

export interface CommentLikeRequestConfig extends RequestBaseConfig {
id: string
id: string | number
type: 0 | 1 | 2 | 3 | 4 | 5
t: 1 | 0
cid: number
cid: string | number
threadId?: string
}
8 changes: 4 additions & 4 deletions module_types/comment_music.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { RequestBaseConfig } from './base'

export interface CommentMusicRequestConfig extends RequestBaseConfig {
id: string
limit?: number
offset?: number
before?: number
id: string | number
limit?: string | number
offset?: string | number
before?: string | number
}
8 changes: 4 additions & 4 deletions module_types/comment_mv.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { RequestBaseConfig } from './base'

export interface CommentMvRequestConfig extends RequestBaseConfig {
id: string
limit?: number
offset?: number
before?: number
id: string | number
limit?: string | number
offset?: string | number
before?: string | number
}
8 changes: 4 additions & 4 deletions module_types/comment_playlist.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { RequestBaseConfig } from './base'

export interface CommentPlaylistRequestConfig extends RequestBaseConfig {
id: string
limit?: number
offset?: number
before?: number
id: string | number
limit?: string | number
offset?: string | number
before?: string | number
}
8 changes: 4 additions & 4 deletions module_types/comment_video.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { RequestBaseConfig } from './base'

export interface CommentVideoRequestConfig extends RequestBaseConfig {
id: string
limit?: number
offset?: number
before?: number
id: string | number
limit?: string | number
offset?: string | number
before?: string | number
}
2 changes: 1 addition & 1 deletion module_types/daily_signin.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { RequestBaseConfig } from './base'

export interface DailySigninRequestConfig extends RequestBaseConfig {
type: 0 | 1
type?: 0 | 1
}
2 changes: 1 addition & 1 deletion module_types/digitalAlbum_ordering.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { RequestBaseConfig } from './base'

export interface DigitalAlbumOrderingRequestConfig extends RequestBaseConfig {
payment: string
id: string
id: string | number
quantity: string
}
4 changes: 2 additions & 2 deletions module_types/digitalAlbum_purchased.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { RequestBaseConfig } from './base'

export interface DigitalAlbumPurchasedRequestConfig extends RequestBaseConfig {
offset?: number
limit?: number
offset?: string | number
limit?: string | number
}
2 changes: 1 addition & 1 deletion module_types/dj_detail.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { RequestBaseConfig } from './base'

export interface DjDetailRequestConfig extends RequestBaseConfig {
rid: string
rid: string | number
}
4 changes: 2 additions & 2 deletions module_types/dj_hot.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { RequestBaseConfig } from './base'

export interface DjHotRequestConfig extends RequestBaseConfig {
offset?: number
limit?: number
offset?: string | number
limit?: string | number
}
4 changes: 2 additions & 2 deletions module_types/dj_paygift.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { RequestBaseConfig } from './base'

export interface DjPaygiftRequestConfig extends RequestBaseConfig {
offset?: number
limit?: number
offset?: string | number
limit?: string | number
}
6 changes: 3 additions & 3 deletions module_types/dj_program.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { RequestBaseConfig } from './base'

export interface DjProgramRequestConfig extends RequestBaseConfig {
rid: string
limit?: number
offset?: number
rid: string | number
limit?: string | number
offset?: string | number
asc: 'true' | 1 | 'false' | 0
}
2 changes: 1 addition & 1 deletion module_types/dj_program_detail.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { RequestBaseConfig } from './base'

export interface DjProgramDetailRequestConfig extends RequestBaseConfig {
id: number
id: string | number
}
Loading

1 comment on commit 4343260

@vercel
Copy link

@vercel vercel bot commented on 4343260 Sep 13, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.