@scalar/api-reference
Version:
Generate beautiful API references from OpenAPI documents
15 lines • 639 B
TypeScript
import type { SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
import { type CompositionKeyword } from './schema-composition.js';
type CompositionToRender = {
composition: CompositionKeyword;
value: SchemaObject;
};
/**
* Computes which compositions should be rendered and with which values
*
* @param value - The schema object to check for compositions
* @returns Array of compositions to render with their values
*/
export declare const getCompositionsToRender: (value: SchemaObject | undefined) => CompositionToRender[];
export {};
//# sourceMappingURL=get-compositions-to-render.d.ts.map