openapi-typescript
Version:
Convert OpenAPI 3.0 & 3.1 schemas to TypeScript
8 lines (7 loc) • 387 B
TypeScript
import type { GlobalContext, PathItemObject } from "../types.js";
export interface TransformPathItemObjectOptions {
path: string;
ctx: GlobalContext;
}
export type Method = "get" | "put" | "post" | "delete" | "options" | "head" | "patch" | "trace";
export default function transformPathItemObject(pathItem: PathItemObject, { path, ctx }: TransformPathItemObjectOptions): string;