How to define Object of Objects type in typescript April 6, 2023 by Tarik It should be: private data: { [name: string]: DataModel }; And then this should work: this.data = {};