Skip to main content
Home

Built and signed on GitHub Actions

Generate beautiful TypeScript types from REST APIs

This package works with Node.jsIt is unknown whether this package works with Cloudflare Workers, Deno, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
100%
Published
2 months ago (6.3.4)

REST2TS

NPM Version JSR Version

Generate modern TypeScript types from REST APIs

🚀 Usage

npx rest2ts -s https://petstore.swagger.io/v2/swagger.json -t ./api

📖 Docs

👉 https://gaboe.github.io/rest2ts/ 👈

🤝 Support

📦 Contribution

  1. Clone the repository

  2. At root level run

pnpm i
  1. Change the at /apps/cli

  2. Write test for your change or test them with

pnpm test

if you want to change snapshot run

pnpm test:snapshot:update
Built and signed on
GitHub Actions

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@gaboe/rest2ts

Import symbol

import * as rest_ts from "@gaboe/rest2ts";
or

Import directly with a jsr specifier

import * as rest_ts from "jsr:@gaboe/rest2ts";

Add Package

pnpm i jsr:@gaboe/rest2ts
or (using pnpm 10.8 or older)
pnpm dlx jsr add @gaboe/rest2ts

Import symbol

import * as rest_ts from "@gaboe/rest2ts";

Add Package

yarn add jsr:@gaboe/rest2ts
or (using Yarn 4.8 or older)
yarn dlx jsr add @gaboe/rest2ts

Import symbol

import * as rest_ts from "@gaboe/rest2ts";

Add Package

vlt install jsr:@gaboe/rest2ts

Import symbol

import * as rest_ts from "@gaboe/rest2ts";

Add Package

npx jsr add @gaboe/rest2ts

Import symbol

import * as rest_ts from "@gaboe/rest2ts";

Add Package

bunx jsr add @gaboe/rest2ts

Import symbol

import * as rest_ts from "@gaboe/rest2ts";