@frostup/swr-request-generator
Version:
A tool for generating TypeScript code and interface from swagger by using SWR and axios as client.
17 lines (16 loc) • 637 B
text/typescript
export const 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.",
};
export const LOG_MESSAGE = {
GENERATING: "generating...",
SUCCESSFUL: "successful!!!",
};
export const HTTP_METHODS = ["get", "post", "put", "delete", "patch", "options", "head"];
export const SLASH = "/";
export const FILE_TIP = `\n/*
* this file is generated by @openapi-integration/swr-request-generator.
* please do not modify it manually.
*/\n
`;
export const ENUM_SUFFIX = `#EnumTypeSuffix`;