UNPKG

@namcaodev/postman-codegen

Version:

Auto generate all file typescript, query options, mutation options of tanstack query from postman json

15 lines (14 loc) 870 B
import { PostmanFormData } from "./types"; export declare function isValidJSON(jsonString: any): boolean; export declare const convertToKebabCase: (str: any) => any; export declare function transformFormDataToPayloadObject(arr: PostmanFormData[]): {}; export declare const cleanUrl: (url: string) => string; export declare function replaceQuicktypeSpecialWords(str: string): string; export declare const cleanSpecialCharacter: (text: string, options?: { transformSpace?: boolean; pascalCase?: boolean; }) => string; export declare const safeStringify: (json: any) => string; export declare const replaceTypeDuplicateString: (content: string) => string; export declare function fixDuplicateInterfacesBetweenStrings(baseContent: any, newContent: any, entityName: any): any; export declare function cleanGeneratedFolder(generatedFolderPath: string): Promise<void>;