fumadocs-openapi
Version:
Generate MDX docs for your OpenAPI spec
27 lines (26 loc) • 937 B
TypeScript
import { NoReference, ParsedSchema } from "../utils/schema.js";
import { MethodInformation, ParameterObject, RenderContext, SecuritySchemeObject } from "../types.js";
import * as react0 from "react";
import * as react_jsx_runtime0 from "react/jsx-runtime";
//#region src/playground/index.d.ts
type ParameterField = NoReference<ParameterObject> & {
schema: ParsedSchema;
in: 'cookie' | 'header' | 'query' | 'path';
};
interface APIPlaygroundProps {
path: string;
method: MethodInformation;
ctx: RenderContext;
}
type SecurityEntry = SecuritySchemeObject & {
scopes: string[];
id: string;
};
declare function APIPlayground({
path,
method,
ctx
}: APIPlaygroundProps): Promise<string | number | bigint | boolean | react_jsx_runtime0.JSX.Element | Iterable<react0.ReactNode> | null | undefined>;
//#endregion
export { APIPlayground, APIPlaygroundProps, ParameterField, SecurityEntry };
//# sourceMappingURL=index.d.ts.map