未验证 提交 c831af12 编写于 作者: A a632079

fix: module exports wrong in types declartion

上级 b8067419
export * from './interface'
// export * from './interface'
import {
ActivateInitProfileRequestConfig,
AlbumRequestConfig,
......@@ -182,13 +182,14 @@ import {
APIBaseResponse,
} from './interface'
// Start
export interface Response<T> {
// export interface Response<T> {
interface Response<T> {
status: number // The Http Response Code
body: T // API Response body
cookie: string[]
}
interface SDKInstance {
interface APIInstance {
activate_init_profile: (
params: ActivateInitProfileRequestConfig,
) => Promise<Response<APIBaseResponse>>
......@@ -669,7 +670,8 @@ interface SDKInstance {
) => Promise<Response<APIBaseResponse>>
weblog: (params: WeblogRequestConfig) => Promise<Response<APIBaseResponse>>
}
interface SDKInstance extends APIInstance {
default: APIInstance
}
declare const SDK: SDKInstance
export default SDK
export = SDK
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册