Files
weRequest/build/module/errorHandler.d.ts

17 lines
779 B
TypeScript
Raw Normal View History

/// <reference types="wx" />
2019-01-04 18:41:46 +08:00
import { IRequestOption, IUploadFileOption } from "../interface";
declare function systemError(obj: IRequestOption | IUploadFileOption, res: wx.GeneralCallbackResult): void;
declare function logicError(obj: IRequestOption | IUploadFileOption, res: wx.RequestSuccessCallbackResult | wx.UploadFileSuccessCallbackResult): void;
declare function getErrorMsg(res: wx.RequestSuccessCallbackResult | wx.UploadFileSuccessCallbackResult): {
title: string;
content: string;
};
declare function doError(title: string, content: string, retry?: () => any): void;
2019-01-04 18:41:46 +08:00
declare const _default: {
systemError: typeof systemError;
logicError: typeof logicError;
doError: typeof doError;
getErrorMsg: typeof getErrorMsg;
2019-01-04 18:41:46 +08:00
};
2018-12-21 17:28:46 +08:00
export default _default;