ParentFull threadjvilk·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/View on HN