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 {
|
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;
|
||||||
|
|||||||
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;
|
init: (obj: IInitOption) => void;
|
||||||
/** 请求 */
|
/** 请求 */
|
||||||
request: (option: IRequestOption) => void;
|
request: (option: IRequestOption) => void | Promise<object>;
|
||||||
/** 上传文件 */
|
/** 上传文件 */
|
||||||
uploadFile: (option: IUploadFileOption) => void;
|
uploadFile: (option: IUploadFileOption) => void;
|
||||||
/* 获取本地缓存中用户票据的值 */
|
/* 获取本地缓存中用户票据的值 */
|
||||||
|
|||||||
Reference in New Issue
Block a user