Nezir Zahirovic
Nezir Zahirovic

Typing objects in TypeScript

In JavaScript, objects can play two roles (always at least one of them, sometimes mixtures):Records: A fixed amount of properties that are known at development time. Each property can have a different type.Dictionaries: An arbitrary amount of properties whose names are not known at development time. All property keys (strings and/or symbols) have the same type, as do the property values.First and foremost, we will explore objects as records. We will briefly get to objects as dictionaries later in this post.


Typing objects in TypeScript #javascriptba #javascript #nodejs #reactjs #angularjs #vuejs #meteorjs #typescript #jquery #emberjs #denojs #bosnia