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 {
init: (obj: IInitOption) => void;
request: (option: IRequestOption) => void;
request: (option: IRequestOption) => void | Promise<object>;
uploadFile: (option: IUploadFileOption) => void;
getSession: () => string;
getConfig: () => IGetConfigResult;