fumadocs-openapi
Version:
Generate MDX docs for your OpenAPI spec
11 lines • 571 B
TypeScript
import type { ApiPageProps } from '../render/api-page.js';
import { createProxy } from '../server/proxy.js';
import type { CodeSample } from '../render/operation/index.js';
export type OpenAPIOptions = Omit<Partial<ApiPageProps>, 'document'>;
export interface OpenAPIServer {
getAPIPageProps: (from: ApiPageProps) => ApiPageProps;
createProxy: typeof createProxy;
}
export declare function createOpenAPI(options?: OpenAPIOptions): OpenAPIServer;
export declare function createCodeSample<T>(options: CodeSample<T>): CodeSample;
//# sourceMappingURL=create.d.ts.map