Media Summary: [key: string]: any; in your class/interface definition will do the trick. Get the COMPLETE COURSE (60% OFF - LIMITED TIME): Creating classes in regular JavaScript is difficult and feels weird because it uses prototype-based inheritance. In
Typescript Object Optional Properties Nested Objects Typescript Tutorial Learning Points - Detailed Analysis & Overview
[key: string]: any; in your class/interface definition will do the trick. Get the COMPLETE COURSE (60% OFF - LIMITED TIME): Creating classes in regular JavaScript is difficult and feels weird because it uses prototype-based inheritance. In In this chapter, we take a deep dive into the foundations of