Hacker News new | ask | show | jobs
by terandle 594 days ago
Pretty easy to add runtime validation at the edges with Zod https://github.com/colinhacks/zod

Great thing is that the zod schema also doubles as your typescript type so you don't have to write a duplicate/shadow TS type definition.

1 comments

That doesn't make Typescript as a language "strongly typed".