UNPKG

@kubb/plugin-oas

Version:

OpenAPI Specification (OAS) plugin for Kubb, providing core functionality for parsing and processing OpenAPI/Swagger schemas for code generation.

47 lines (43 loc) 1.25 kB
import { S as Schema } from './Schema-M6983FL1.cjs'; import * as react from 'react'; import { Operation as Operation$1, Oas as Oas$1 } from '@kubb/oas'; import { KubbNode } from '@kubb/react/types'; import { b as OperationGenerator } from './OperationGenerator-DJE2XQ83.cjs'; import './SchemaMapper-B21ZmWag.cjs'; import '@kubb/core/fs'; import '@kubb/core'; type Props$1 = { operation: Operation$1; children?: KubbNode; }; type OperationContextProps = { operation?: Operation$1; }; declare function Operation({ operation, children }: Props$1): any; declare namespace Operation { var Context: react.Context<OperationContextProps>; } type Props = { oas: Oas$1; operations?: Operation$1[]; /** * @deprecated */ generator?: Omit<OperationGenerator, 'build'>; children?: KubbNode; }; type OasContextProps = { oas?: Oas$1; operations?: Operation$1[]; /** * @deprecated */ generator?: Omit<OperationGenerator, 'build'>; }; declare function Oas({ oas, children, operations, generator }: Props): any; declare namespace Oas { var Context: react.Context<OasContextProps>; var Operation: typeof Operation; var Schema: typeof Schema; } export { Oas, Operation, Schema };