fix: typing
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<p align="center"><img src="./image/logo.png" alt="weRequest" height="160"/></p>
|
||||
<h2 align="center">v1.2.6</h2>
|
||||
<h2 align="center">v1.2.7</h2>
|
||||
<p align="center"><b>解决繁琐的小程序会话管理,一款自带登录态管理的网络请求组件。</b></p>
|
||||
|
||||
|
||||
|
||||
4
build/interface.d.ts
vendored
4
build/interface.d.ts
vendored
@@ -66,8 +66,8 @@ export interface IGetConfigResult {
|
||||
}
|
||||
export interface weRequest {
|
||||
init: (obj: IInitOption) => void;
|
||||
request: (option: IRequestOption) => void | Promise<object>;
|
||||
uploadFile: (option: IUploadFileOption) => void;
|
||||
request: (option: IRequestOption) => Promise<object>;
|
||||
uploadFile: (option: IUploadFileOption) => Promise<object>;
|
||||
getSession: () => string;
|
||||
getConfig: () => IGetConfigResult;
|
||||
login: (callback: Function) => void;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* weRequest 1.2.6
|
||||
* weRequest 1.2.7
|
||||
* https://github.com/IvinWu/weRequest
|
||||
*/
|
||||
module.exports =
|
||||
@@ -1134,7 +1134,7 @@ exports.default = {
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var version = "1.2.6";
|
||||
var version = "1.2.7";
|
||||
exports.version = version;
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy92ZXJzaW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBRUEsSUFBTSxPQUFPLEdBQUcsV0FBVyxDQUFDO0FBRW5CLDBCQUFPIiwic291cmNlc0NvbnRlbnQiOlsiZGVjbGFyZSBjb25zdCBfX1ZFUlNJT05fXzogc3RyaW5nO1xuXG5jb25zdCB2ZXJzaW9uID0gX19WRVJTSU9OX187XG5cbmV4cG9ydCB7IHZlcnNpb24gfTtcbiJdfQ==
|
||||
|
||||
|
||||
4
build/weRequest.min.js
vendored
4
build/weRequest.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "we-request",
|
||||
"version": "1.2.6",
|
||||
"version": "1.2.7",
|
||||
"description": "本工具通过拓展小程序的wx.request,让开发者通过简单的配置,实现自动管理登录态等功能",
|
||||
"keywords": [
|
||||
"登录态",
|
||||
|
||||
@@ -141,9 +141,9 @@ export interface weRequest {
|
||||
/** 初始化 */
|
||||
init: (obj: IInitOption) => void;
|
||||
/** 请求 */
|
||||
request: (option: IRequestOption) => void | Promise<object>;
|
||||
request: (option: IRequestOption) => Promise<object>;
|
||||
/** 上传文件 */
|
||||
uploadFile: (option: IUploadFileOption) => void;
|
||||
uploadFile: (option: IUploadFileOption) => Promise<object>;
|
||||
/* 获取本地缓存中用户票据的值 */
|
||||
getSession: () => string;
|
||||
/* 获取weRequest的配置 */
|
||||
|
||||
Reference in New Issue
Block a user