fix: fixed typing (#24)
This commit is contained in:
2
build/interface.d.ts
vendored
2
build/interface.d.ts
vendored
@@ -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;
|
||||
|
||||
2
build/weRequest.min.js
vendored
2
build/weRequest.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -141,7 +141,7 @@ export interface weRequest {
|
||||
/** 初始化 */
|
||||
init: (obj: IInitOption) => void;
|
||||
/** 请求 */
|
||||
request: (option: IRequestOption) => void;
|
||||
request: (option: IRequestOption) => void | Promise<object>;
|
||||
/** 上传文件 */
|
||||
uploadFile: (option: IUploadFileOption) => void;
|
||||
/* 获取本地缓存中用户票据的值 */
|
||||
|
||||
Reference in New Issue
Block a user