Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
wvenable
on July 7, 2023
|
parent
|
context
|
favorite
| on:
TypeScript please give us reflection/runtime types
You'd still be able to execute the code as JS. Your library that uses type reflection wouldn't work anymore but that's true of all these solutions.
lolinder
on July 7, 2023
[–]
No, it's not. I can take a library that uses zod, strip the annotations, and it will execute perfectly anywhere I want to run it.
wvenable
on July 7, 2023
|
parent
[–]
That's because Zod doesn't use type annotations as input. We're talking about wanting to use type annotations as input so that we don't have to make our code as ugly as Zod makes it.
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: