UNPKG

openapi-typescript

Version:

Convert OpenAPI 3.0 & 3.1 schemas to TypeScript

5 lines (4 loc) 377 B
import ts from "typescript"; import type { ComponentsObject, GlobalContext } from "../types.js"; export default function transformComponentsObject(componentsObject: ComponentsObject, ctx: GlobalContext): ts.Node[]; export declare function singularizeComponentKey(key: `x-${string}` | "schemas" | "responses" | "parameters" | "requestBodies" | "headers" | "pathItems"): string;