@kubb/plugin-ts
Version:
TypeScript code generation plugin for Kubb, transforming OpenAPI schemas into TypeScript interfaces, types, and utility functions.
40 lines (39 loc) • 1.13 kB
TypeScript
import { t as __name } from "./chunk--u3MIqq1.js";
import { n as PluginTs } from "./types-Ky865RfZ.js";
import { Schema } from "@kubb/plugin-oas";
import { SchemaObject } from "@kubb/oas";
import { FabricReactNode } from "@kubb/react-fabric/types";
//#region src/components/Type.d.ts
type Props = {
name: string;
typedName: string;
schema: SchemaObject;
tree: Array<Schema>;
optionalType: PluginTs['resolvedOptions']['optionalType'];
arrayType: PluginTs['resolvedOptions']['arrayType'];
enumType: PluginTs['resolvedOptions']['enumType'];
enumTypeSuffix: PluginTs['resolvedOptions']['enumTypeSuffix'];
enumKeyCasing: PluginTs['resolvedOptions']['enumKeyCasing'];
mapper: PluginTs['resolvedOptions']['mapper'];
syntaxType: PluginTs['resolvedOptions']['syntaxType'];
description?: string;
keysToOmit?: string[];
};
declare function Type({
name,
typedName,
tree,
keysToOmit,
schema,
optionalType,
arrayType,
syntaxType,
enumType,
enumTypeSuffix,
enumKeyCasing,
mapper,
description
}: Props): FabricReactNode;
//#endregion
export { Type };
//# sourceMappingURL=components.d.ts.map