UNPKG

@alauda/doom

Version:

Doctor Doom making docs.

30 lines (29 loc) 1.27 kB
import type { OpenAPIV3_1 } from 'openapi-types'; export interface OpenAPIRefProps { /** * The schema name under the OpenAPI schema `definitions` (swagger 2.0) or `components/schemas` (openapi 3.x). */ schema: string; /** * The specific path to the OpenAPI schema, otherwise the first matched will be used. */ openapiPath?: string; /** * Whether to collect references from the schema. * * @default true */ collectRefs?: boolean; } export declare const get$Ref: (obj: OpenAPIV3_1.ReferenceObject | OpenAPIV3_1.SchemaObject) => string | undefined; export declare const OpenAPIProperty: ({ name, property, openapi, }: { name?: string; property: OpenAPIV3_1.ReferenceObject | OpenAPIV3_1.SchemaObject; openapi: OpenAPIV3_1.Document; }) => import("react/jsx-runtime").JSX.Element; export declare const OpenAPIProperties: ({ properties, openapi, }: { properties: Record<string, OpenAPIV3_1.ReferenceObject | OpenAPIV3_1.SchemaObject>; openapi: OpenAPIV3_1.Document; }) => import("react/jsx-runtime").JSX.Element; export declare const OpenAPIRef: ({ schema, openapiPath: openapiPath_, collectRefs, }: OpenAPIRefProps) => import("react/jsx-runtime").JSX.Element | null; export default OpenAPIRef;