From c831af12cdd497b7e47bad04ba2ba2cc7dfe5955 Mon Sep 17 00:00:00 2001 From: a632079 Date: Mon, 7 Sep 2020 20:27:17 +0800 Subject: [PATCH] fix: module exports wrong in types declartion --- main.d.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/main.d.ts b/main.d.ts index ee79550..2d615bb 100644 --- a/main.d.ts +++ b/main.d.ts @@ -1,4 +1,4 @@ -export * from './interface' +// export * from './interface' import { ActivateInitProfileRequestConfig, AlbumRequestConfig, @@ -182,13 +182,14 @@ import { APIBaseResponse, } from './interface' // Start -export interface Response { +// export interface Response { +interface Response { status: number // The Http Response Code body: T // API Response body cookie: string[] } -interface SDKInstance { +interface APIInstance { activate_init_profile: ( params: ActivateInitProfileRequestConfig, ) => Promise> @@ -669,7 +670,8 @@ interface SDKInstance { ) => Promise> weblog: (params: WeblogRequestConfig) => Promise> } - +interface SDKInstance extends APIInstance { + default: APIInstance +} declare const SDK: SDKInstance - -export default SDK +export = SDK