UNPKG

@scalar/api-reference

Version:

Generate beautiful API references from OpenAPI documents

11 lines 523 B
import type { SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document'; import type { ReferenceType } from '@scalar/workspace-store/schemas/v3.1/strict/reference'; /** * Gets the "name" of the schema from the ref path * TODO: this will change so fix it when the new refs are out * Then add tests * * @example SchemaName from #/components/schemas/SchemaName */ export declare const getRefName: (schema: ReferenceType<SchemaObject>) => string | null; //# sourceMappingURL=get-ref-name.d.ts.map