DEV Community

Discussion on: Pragmatic types: IO validation or how to handle JSON-based APIs in statically typed language

Collapse
 
c01nd01r profile image
Stanislav

Thank you for the article!

It seems that the last example should have an

type Person = t.TypeOf<typeof PersonInterface>

instead of

type Person = t.TypeOf<typeof Person>