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.
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
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.

Discussion 0
Sign up Sign in to join the discussion
No comments yet. Start the conversation.