A lot of projects use JSON schemas for runtime data validation along with TypeScript for static type checking.

Features

  • The FromSchema method lets you infer TS types directly from JSON schemas
  • Schemas can even be nested, as long as you don't forget the as const statement
  • The as const statement is used so that TypeScript takes the schema definition to the word
  • Since TS 4.9, you can also use the satisfies operator to benefit from type-checking and autocompletion
  • Combine schemas
  • FromSchema will correctly infer factored schemas

Project Samples

Project Activity

See All Activity >

Categories

JSON

License

MIT License

Follow JSON Schema to TS

JSON Schema to TS Web Site

Other Useful Business Software
Easily Host LLMs and Web Apps on Cloud Run Icon
Easily Host LLMs and Web Apps on Cloud Run

Run everything from popular models with on-demand NVIDIA L4 GPUs to web apps without infrastructure management.

Run frontend and backend services, batch jobs, host LLMs, and queue processing workloads without the need to manage infrastructure. Cloud Run gives you on-demand GPU access for hosting LLMs and running real-time AI—with 5-second cold starts and automatic scale-to-zero so you only pay for actual usage. New customers get $300 in free credit to start.
Try Cloud Run Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of JSON Schema to TS!

Additional Project Details

Programming Language

TypeScript

Related Categories

TypeScript JSON Software

Registered

2023-10-13