openapi-typescript
Version:
Convert OpenAPI 3.0 & 3.1 schemas to TypeScript
5 lines (4 loc) • 318 B
TypeScript
import ts from "typescript";
import type { PathItemObject, TransformNodeOptions } from "../types.js";
export type Method = "get" | "put" | "post" | "delete" | "options" | "head" | "patch" | "trace";
export default function transformPathItemObject(pathItem: PathItemObject, options: TransformNodeOptions): ts.TypeNode;