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

17 lines
875 B
TypeScript
Raw Permalink Normal View History

/// <reference types="miniprogram-api-typings" />
2019-01-04 18:41:46 +08:00
import { IRequestOption, IUploadFileOption } from "../interface";
declare function systemError(obj: IRequestOption | IUploadFileOption, res: WechatMiniprogram.GeneralCallbackResult): void;
declare function logicError(obj: IRequestOption | IUploadFileOption, res: WechatMiniprogram.RequestSuccessCallbackResult | WechatMiniprogram.UploadFileSuccessCallbackResult): void;
declare function getErrorMsg(res: WechatMiniprogram.RequestSuccessCallbackResult | WechatMiniprogram.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;