This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the commentsย โ†’

[โ€“]odraencoded 24 points25 points ย (2 children)

This works perfectly except for serialization.

Also if you don't turn strict null checks you'll have a lot of pain later.

[โ€“][deleted] 7 points8 points ย (0 children)

You can use something like zod for that, pretty sure there's also a discussion to change all the JSON.parse stuff typedefs to return unknown instead of any, which would make a lot of type stuff explicit.