UNPKG

@scalar/api-reference

Version:

Generate beautiful API references from OpenAPI documents

10 lines 458 B
import type { ReferenceType, SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document'; /** * 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 | undefined; //# sourceMappingURL=get-ref-name.d.ts.map