UNPKG

fumadocs-openapi

Version:

Generate MDX docs for your OpenAPI spec

21 lines 890 B
import type { MethodInformation, ParameterObject, RenderContext, SecuritySchemeObject } from '../types.js'; import { type NoReference, type ParsedSchema } from '../utils/schema.js'; import { type ClientProps } from './client.js'; export type ParameterField = NoReference<ParameterObject> & { schema: ParsedSchema; in: 'cookie' | 'header' | 'query' | 'path'; }; export type RequestSchema = ParsedSchema; export interface APIPlaygroundProps { path: string; method: MethodInformation; ctx: RenderContext; client?: Partial<ClientProps>; } export type { ClientProps, CustomField } from './client.js'; export type SecurityEntry = SecuritySchemeObject & { scopes: string[]; id: string; }; export declare function APIPlayground({ path, method, ctx, client, }: APIPlaygroundProps): Promise<import("react/jsx-runtime").JSX.Element>; //# sourceMappingURL=index.d.ts.map