TypeScript types for OpenAPI specification.
Currently, this package only supports OpenAPI v3.1.
npm install -D @moontai0724/openapi-types
yarn add -D @moontai0724/openapi-types
pnpm add -D @moontai0724/openapi-types
import type {
OpenAPIObject,
OperationObject,
} from "@moontai0724/openapi-types";
const openapi: OpenAPIObject = {
openapi: "3.0.0",
// ...
};
const operation: OperationObject = {
// ...
};
See the API documentation.