Typescript definitions for the OpenAPI (and Swagger 2.0) specification.
npm i @byu-oit/oas-ts
Most use cases only need to access either openapi OR swagger
import { OpenAPIObject } from '@byu-oit/oas-ts/openapi'
import { SwaggerObject } from '@byu-oit/oas-ts/swagger'
If you need to access both definitions within the same file, rename the exported object:
import * as OAS from '@byu-oit/oas-ts/openapi'
import * as Swagger form '@byu-oit/oas-ts/swagger'