@tstypes/openapi-v2

OpenApi v2 types

Usage no npm install needed!

<script type="module">
  import tstypesOpenapiV2 from 'https://cdn.skypack.dev/@tstypes/openapi-v2';
</script>

README

OpenApi version 2 types

These types are manually created from the specifications offered by the OpenApi project.

Geting started

In the tsconfig.json add:

  • ./node_modules/@tstypes in the typeroot section
  • openapi-v2 in the types section

Example

"typeRoots": [
    "./node_modules/@tstypes"
],
"types": [
    "openapi-v2",
    "openapi-v3"
]