UNPKG

openapi-to-ts

Version:

Generate TypeScript types from OpenAPI 3.0 specs.

7 lines (6 loc) 229 B
/** * Converts a string array to a TypeScript intersection type. * For example, ['T', 'S'] becomes T & S. * @param types the type array to convert. */ export declare const toTSIntersection: (types: string[]) => string;