mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2025-10-23 15:43:10 +00:00
fix: module exports wrong in types declartion
This commit is contained in:
parent
b806741905
commit
c831af12cd
14
main.d.ts
vendored
14
main.d.ts
vendored
@ -1,4 +1,4 @@
|
|||||||
export * from './interface'
|
// export * from './interface'
|
||||||
import {
|
import {
|
||||||
ActivateInitProfileRequestConfig,
|
ActivateInitProfileRequestConfig,
|
||||||
AlbumRequestConfig,
|
AlbumRequestConfig,
|
||||||
@ -182,13 +182,14 @@ import {
|
|||||||
APIBaseResponse,
|
APIBaseResponse,
|
||||||
} from './interface'
|
} from './interface'
|
||||||
// Start
|
// Start
|
||||||
export interface Response<T> {
|
// export interface Response<T> {
|
||||||
|
interface Response<T> {
|
||||||
status: number // The Http Response Code
|
status: number // The Http Response Code
|
||||||
body: T // API Response body
|
body: T // API Response body
|
||||||
cookie: string[]
|
cookie: string[]
|
||||||
}
|
}
|
||||||
|
|
||||||
interface SDKInstance {
|
interface APIInstance {
|
||||||
activate_init_profile: (
|
activate_init_profile: (
|
||||||
params: ActivateInitProfileRequestConfig,
|
params: ActivateInitProfileRequestConfig,
|
||||||
) => Promise<Response<APIBaseResponse>>
|
) => Promise<Response<APIBaseResponse>>
|
||||||
@ -669,7 +670,8 @@ interface SDKInstance {
|
|||||||
) => Promise<Response<APIBaseResponse>>
|
) => Promise<Response<APIBaseResponse>>
|
||||||
weblog: (params: WeblogRequestConfig) => Promise<Response<APIBaseResponse>>
|
weblog: (params: WeblogRequestConfig) => Promise<Response<APIBaseResponse>>
|
||||||
}
|
}
|
||||||
|
interface SDKInstance extends APIInstance {
|
||||||
|
default: APIInstance
|
||||||
|
}
|
||||||
declare const SDK: SDKInstance
|
declare const SDK: SDKInstance
|
||||||
|
export = SDK
|
||||||
export default SDK
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user