fix: fixed typing (#24)

This commit is contained in:
Sail
2019-04-09 10:46:41 +08:00
committed by Ivin Wu
parent 69fd371857
commit c2ac6fa5be
3 changed files with 3 additions and 3 deletions

View File

@@ -66,7 +66,7 @@ export interface IGetConfigResult {
} }
export interface weRequest { export interface weRequest {
init: (obj: IInitOption) => void; init: (obj: IInitOption) => void;
request: (option: IRequestOption) => void; request: (option: IRequestOption) => void | Promise<object>;
uploadFile: (option: IUploadFileOption) => void; uploadFile: (option: IUploadFileOption) => void;
getSession: () => string; getSession: () => string;
getConfig: () => IGetConfigResult; getConfig: () => IGetConfigResult;

File diff suppressed because one or more lines are too long

View File

@@ -141,7 +141,7 @@ export interface weRequest {
/** 初始化 */ /** 初始化 */
init: (obj: IInitOption) => void; init: (obj: IInitOption) => void;
/** 请求 */ /** 请求 */
request: (option: IRequestOption) => void; request: (option: IRequestOption) => void | Promise<object>;
/** 上传文件 */ /** 上传文件 */
uploadFile: (option: IUploadFileOption) => void; uploadFile: (option: IUploadFileOption) => void;
/* 获取本地缓存中用户票据的值 */ /* 获取本地缓存中用户票据的值 */