Introduction to TypeScript's Many Objects
Explore the different object types in TypeScript including Object versus object and the role of curly braces. Learn to distinguish these forms and understand how non-primitive types are represented through class instantiation and Object.create in this lesson.
We'll cover the following...
TypeScript has many different object types.
In this section, we will see the difference between the two objects which are confusingly called Object and object – one that starts with an uppercase O and another with a lowercase o.
We will also see how the curly bracket brings a third object type.
The lowercase object comes not only from Object.create, but also if you instantiate a class in TypeScript. It represents all types that are not primitive, which means those that are not Boolean, number, string, symbol, null, or undefined.
In the upcoming lesson, we’ll study the curly braces object in more detail.