NoFOMO
Search 中EN Sign in Sign up

Peaked at #2 Now #3

TypeScript Runtime Type Validation Proposal

Jarred Sumner asks whether you could pass a TypeScript type to JSON.parse to validate input at runtime, with a link.

Rank over time

Key points

  • Jarred Sumner asked what if you could pass a TypeScript type to JSON.parse and it validates the input at runtime.
  • A reply with 4 likes said writing a type and then a schema that says the same thing is the most boring part of TypeScript, and Bun fixing it would be huge.

Key points and the reaction summary are written by AI from the posts on this page. Check the original post. How we use AI

Original post

Jarred Sumner @jarredsumner 195.3K followers

what if you could pass a TypeScript type to JSON.parse and it validates the input at runtime? https://t.co/rz4gkktojR
Post image
808likes 15reposts 85replies 34.3Kviews

View on X Save

Top replies on X

Sign in to see 5 top replies from X

From @serxzsz, @samgoodwin89, @ryoppippi and others. Spam removed, with English and Chinese translations.

Sign up free Have an account? Sign in

Discussion 0

No comments yet. Start the conversation.

Suggest a source

Is there a first-hand source we're missing, or a topic we should watch? Tell us. Once approved, everyone's board covers it.

@username or profile link