auto-request
Version:
通过Yapi JSON Schema生成接口Axios或Taro接口
34 lines • 795 B
TypeScript
export declare enum ErrorType {
PathParams = "path-total-error",
SchemaError = "schema-error",
PathError = "path-error",
Debug = "debug"
}
export declare const ErrorTypeDesc: {
"path-total-error": string;
"schema-error": string;
"path-error": string;
debug: string;
};
interface ErrorUrl {
desc?: string;
url: string;
method: string;
errorType: ErrorType;
errMsg?: string;
}
declare class Store {
errorUrl: ErrorUrl[];
isTypeScript: boolean;
isJsDoc: boolean;
errorPath?: string;
filename?: string;
logFilename?: string;
constructor();
pushError(data: ErrorUrl): void;
print(): string;
getFileType(): ".ts" | ".js";
}
declare const store: Store;
export default store;
//# sourceMappingURL=index.d.ts.map