Re:TypeScript’s quirks: How inconsistencies make the languag...
by jvilk on Friday January 31, 2020 @09:25PM
(#22208155)
I wrote a tool that may be useful here; it generates a TypeScript definition file and runtime type checking logic given examples of the objects you want to accept.
https://jvilk.com/MakeTypes/