@moontai0724/openapi-types
v3.1.7
Published
Types for OpenAPI Specification
Downloads
2
Readme
@moontai0724/openapi-types
TypeScript types for OpenAPI specification.
Currently, this package only supports OpenAPI v3.1.
Install
NPM
npm install -D @moontai0724/openapi-types
Yarn
yarn add -D @moontai0724/openapi-types
PNPM
pnpm add -D @moontai0724/openapi-types
Usage
import type {
OpenAPIObject,
OperationObject,
} from "@moontai0724/openapi-types";
const openapi: OpenAPIObject = {
openapi: "3.0.0",
// ...
};
const operation: OperationObject = {
// ...
};
API Document
See the API documentation.