openapi-to-ts
Version:
Generate TypeScript types from OpenAPI 3.0 specs.
8 lines (7 loc) • 409 B
TypeScript
import { IOpenAPISpecFile, IOpenAPIToTSOptions } from './types';
/**
* Converts an OpenAPI 3.0 Specification File to TypeScript types.
* @param specFile the path to the OpenAPI 3.0 specification file to convert.
* @param options optional options passed to openapi-to-ts.
*/
export declare const convertOpenAPIToTS: (specFile: IOpenAPISpecFile, options?: IOpenAPIToTSOptions | undefined) => string;