Comment Comment by jvilk 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/ parent jvilk 6 years ago
https://jvilk.com/MakeTypes/