Welcome
JSON Schema Generator.tsx
All Projects
projects/json-schema-generator

JSON Schema Generator

// Generate TypeScript types from JSON Schema definitions.

| projects

Overview

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Usage

npx json-schema-gen schema.json --output types.ts

Example

Input:

{
  "type": "object",
  "properties": {
    "name": { "type": "string" }
  }
}

Output:

interface Schema {
  name?: string;
}