@frostup/swr-request-generator
Version:
A tool for generating TypeScript code and interface from swagger by using SWR and axios as client.
20 lines (19 loc) • 827 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ENUM_SUFFIX = exports.FILE_TIP = exports.SLASH = exports.HTTP_METHODS = exports.LOG_MESSAGE = exports.ERROR_MESSAGES = void 0;
exports.ERROR_MESSAGES = {
INVALID_JSON_FILE_ERROR: "Your json file is invalid, please check it!",
FETCH_CLIENT_FAILED_ERROR: "Fetch client failed! Please check your network or ts-codegen.config.ts file.",
};
exports.LOG_MESSAGE = {
GENERATING: "generating...",
SUCCESSFUL: "successful!!!",
};
exports.HTTP_METHODS = ["get", "post", "put", "delete", "patch", "options", "head"];
exports.SLASH = "/";
exports.FILE_TIP = `\n/*
* this file is generated by @openapi-integration/swr-request-generator.
* please do not modify it manually.
*/\n
`;
exports.ENUM_SUFFIX = `#EnumTypeSuffix`;