UNPKG

api

Version:

Magical SDK generation from an OpenAPI definition 🪄

21 lines (20 loc) • 738 B
/** * @see {@link https://www.30secondsofcode.org/js/s/word-wrap} */ export declare function wordWrap(str: string, max?: number): string; /** * Safely escape some string characters that may break a docblock. * */ export declare function docblockEscape(str: string): string; /** * Convert a string that might contain spaces or special characters to one that can safely be used * as a TypeScript interface or enum name. * * This function has been adapted and slighty modified from `json-schema-to-typescript`. * * @license MIT * @see {@link https://github.com/bcherny/json-schema-to-typescript} */ export declare function toSafeString(str: string): string; export declare function generateTypeName(...parts: string[]): string;