UNPKG

openapi-to-ts

Version:

Generate TypeScript types from OpenAPI 3.0 specs.

9 lines (8 loc) 572 B
import { IOpenAPIReferenceObject, IOpenAPISchemaObject, ITypeScriptProperty } from '../types'; /** * Converts a OpenAPI 3.0 property to TypeScript property object. * @param schemaObject the schema object to convert the properties of. * @param requiredProperties an array of required properties for the schema. * @param name the name of the property to be generated. */ export declare function generateTSProperty(schemaObject: IOpenAPISchemaObject | IOpenAPIReferenceObject, requiredProperties: string[] | undefined, name: string | null): ITypeScriptProperty;