ValidObject This library let's you create data in a way to ensure it is always valid. To install: npm i ts-valid-object For explanations and usage, please read https://medium.com/@patrick.assoa.adou/valid-typescript-data-guaranteed-f3f3261466bc .