@kubb/plugin-ts
Version:
TypeScript code generation plugin for Kubb, transforming OpenAPI schemas into TypeScript interfaces, types, and utility functions.
33 lines (29 loc) • 990 B
TypeScript
import { OasTypes, SchemaObject } from '@kubb/oas';
import { Schema } from '@kubb/plugin-oas';
import { ReactNode } from 'react';
import { P as PluginTs } from './types-DkvPgLAK.js';
import '@kubb/core';
import 'typescript';
type Props$1 = {
/**
* Name of the function
*/
name: string;
typeName: string;
api: OasTypes.OASDocument;
};
declare function OasType({ name, typeName, api }: Props$1): any;
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;
export { OasType, Type };