UNPKG

openapi-to-ts

Version:

Generate TypeScript types from OpenAPI 3.0 specs.

8 lines (7 loc) 417 B
import { IOpenAPIReferenceObject, IOpenAPISchemaObject } from '../types'; /** * Maps the schema value based on its object type to an internally used type value. * For example, a schema of type `array` might return ['apple', 'bananas']. * @param schemaObject the schema object to map. */ export declare const mapSchemaToTypeValue: (schemaObject: IOpenAPISchemaObject | IOpenAPIReferenceObject) => string[];