🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@sebspark/openapi-typegen

Package Overview
Dependencies
Maintainers
3
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sebspark/openapi-typegen

Generates types and a routerdefinition from OpenAPI specs

Source
npmnpm
Version
5.1.2
Version published
Weekly downloads
1.1K
40.32%
Maintainers
3
Weekly downloads
 
Created
Source

@sebspark/openapi-typegen

Generates types and a routerdefinition from OpenAPI specs

Usage

This is an example assuming that you have one schema, marketdata.json. The name of this file will be used to generate Server and Client names.

This example can be found in @sebspark/openapi-e2e

yarn openapi-typegen -i ./src/schemas/ -o ./src/schemas/

The schema will export all types defined in the OpenAPI spec as well as:

MarketdataAPIServer - a server definition meant to be used with @sebspark/openapi-express

MarketDataAPIClient - a client definition meant to be used with @sebspark/openapi-client

FAQs

Package last updated on 30 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts