@typespec/openapi3
Version:
TypeSpec library for emitting OpenAPI 3.0 and OpenAPI 3.1 from the TypeSpec REST protocol binding and converting OpenAPI3 to TypeSpec
5 lines • 374 B
TypeScript
import { Diagnostic, Program, Type } from "@typespec/compiler";
import { HttpStatusCodesEntry } from "@typespec/http";
import { OpenAPI3StatusCode } from "./types.js";
export declare function getOpenAPI3StatusCodes(program: Program, statusCodes: HttpStatusCodesEntry, response: Type): [OpenAPI3StatusCode[], readonly Diagnostic[]];
//# sourceMappingURL=status-codes.d.ts.map