UNPKG

@kubb/plugin-ts

Version:

TypeScript code generation plugin for Kubb, transforming OpenAPI schemas into TypeScript interfaces, types, and utility functions.

46 lines (45 loc) 1.01 kB
import { OasTypes, PluginTs, Schema, SchemaObject } from "./types-C7OjrC1J.js"; import { ReactNode } from "react"; //#region src/components/OasType.d.ts type Props$1 = { /** * Name of the function */ name: string; typeName: string; api: OasTypes.OASDocument; }; declare function OasType({ name, typeName, api }: Props$1): any; //#endregion //#region src/components/Type.d.ts type Props = { name: string; typedName: string; schema: SchemaObject; tree: Array<Schema>; optionalType: PluginTs['resolvedOptions']['optionalType']; enumType: PluginTs['resolvedOptions']['enumType']; mapper: PluginTs['resolvedOptions']['mapper']; syntaxType: PluginTs['resolvedOptions']['syntaxType']; description?: string; keysToOmit?: string[]; }; declare function Type({ name, typedName, tree, keysToOmit, schema, optionalType, syntaxType, enumType, mapper, description }: Props): ReactNode; //#endregion export { OasType, Type }; //# sourceMappingURL=components.d.ts.map