UNPKG

@mintlify/common

Version:

Commonly shared code within Mintlify

14 lines (13 loc) 675 B
import { PageMetaTags } from '@mintlify/models'; import { parseAsyncApiString } from '../asyncapi/parseAsyncApiString.js'; import { parseOpenApiSchemaString, parseOpenApiString } from '../openapi/parseOpenApiString.js'; export type SchemaTargetType = { type: 'schema'; } & ReturnType<typeof parseOpenApiSchemaString>; export type OperationTargetType = { type: 'operation'; } & ReturnType<typeof parseOpenApiString>; export type AsyncApiTargetType = { type: 'asyncapi'; } & ReturnType<typeof parseAsyncApiString>; export declare const parseApiTargetFromMetadata: (metadata: PageMetaTags) => SchemaTargetType | OperationTargetType | AsyncApiTargetType | undefined;