Skip to content

Commit

Permalink
fix: module exports wrong in types declartion
Browse files Browse the repository at this point in the history
  • Loading branch information
greenhat616 committed Sep 7, 2020
1 parent b806741 commit c831af1
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions main.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from './interface'
// export * from './interface'
import {
ActivateInitProfileRequestConfig,
AlbumRequestConfig,
Expand Down Expand Up @@ -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>>
Expand Down Expand Up @@ -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

0 comments on commit c831af1

Please sign in to comment.