diff --git a/main.d.ts b/main.d.ts index 61d6d55..7105a05 100644 --- a/main.d.ts +++ b/main.d.ts @@ -349,10 +349,55 @@ declare module 'NeteaseCloudMusicApi' { params: { id: string | number type: CommentType - t: CommentAction - threadId?: string - content?: string | number - commentId?: string | number + t: CommentAction.delete + commentId: string | number + } & RequestBaseConfig, + ): Promise + + export function comment( + params: { + type: CommentType.event + t: CommentAction.delete + threadId: string + commentId: string | number + } & RequestBaseConfig, + ): Promise + + export function comment( + params: { + id: string | number + type: CommentType + t: CommentAction.add + content: string | number + } & RequestBaseConfig, + ): Promise + + export function comment( + params: { + type: CommentType.event + t: CommentAction.add + threadId: string + content: string | number + } & RequestBaseConfig, + ): Promise + + export function comment( + params: { + id: string | number + type: CommentType + t: CommentAction.reply + content: string | number + commentId: string | number + } & RequestBaseConfig, + ): Promise + + export function comment( + params: { + type: CommentType.event + t: CommentAction.reply + threadId: string + content: string | number + commentId: string | number } & RequestBaseConfig, ): Promise @@ -681,10 +726,18 @@ declare module 'NeteaseCloudMusicApi' { ): Promise export function login( + params: { email: string; password: string } & RequestBaseConfig, + ): Promise + + export function login( + params: { email: string; md5_password: string } & RequestBaseConfig, + ): Promise + + export function login_cellphone( params: { - email: string - password?: string - md5_password?: string + phone: string + countrycode?: string + password: string } & RequestBaseConfig, ): Promise @@ -692,8 +745,7 @@ declare module 'NeteaseCloudMusicApi' { params: { phone: string countrycode?: string - password?: string - md5_password?: string + md5_password: string } & RequestBaseConfig, ): Promise