UNPKG

@goatlab/fluent

Version:

Readable query Interface & API generator for TS and Node

7 lines (6 loc) 403 B
import { ReferenceObject, SchemaObject, SchemasObject } from 'openapi3-ts'; export declare type SchemaRef = ReferenceObject & { definitions: SchemasObject; }; export declare function jsonToSchemaObject(json: SchemaObject, visited?: Map<SchemaObject, SchemaObject | SchemaRef>): SchemaObject | SchemaRef; export declare function jsonOrBooleanToJSON(jsonOrBool: boolean | SchemaObject): SchemaObject;