openapi-fetch

v0.0.5
Ultra-fast fetching for TypeScript generated automatically from your OpenAPI schema. Weighs in at 1 kb and has virtually zero runtime. Works with React, Vue, Svelte, or vanilla JS.
openapi swagger rest api oapi_3 oapi_3_1 typescript fetch react and 3 more...

lint

npm run lint:ts && npm run lint:js

test

vitest run

build

npm run build:clean && npm run build:ts

lint:js

npx prettier --check "{src,test}/**/*"

lint:ts

tsc --noEmit

prepare

openapi-typescript test/v1.yaml -o test/v1.d.ts

version

npm run prepare && npm run build

build:ts

tsc -p tsconfig.build.json

prepublish

npm run prepare && npm run build

build:clean

del dist

Metadata

  • MIT
  • Whatever
  • Drew Powers
  • released 4/5/2023

Downloads

Maintainers