Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
afavour
on Sept 23, 2022
|
parent
|
context
|
favorite
| on:
Show HN: Ezno, a type checker for JavaScript and o...
At some point I used a TS->JSONSchema generator and that worked out pretty great. Obviously it would be greater to be built into the language but I think that's always going to be out of scope of what TS aims to do.
dtech
on Sept 23, 2022
[–]
Yep, it works pretty well if you combine it with a JSON schema validator and call the validator in a isX(data: unknown): data is X type guard.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: