Creating a strongly-typed object
In this lesson, we'll learn how TypeScript infers the types of objects and how to explicitly specify object type annotations ourselves.
We'll cover the following
Inferred object types
In the code below, what has TypeScript inferred the type of tomScore
to be?
Get hands-on with 1200+ tech skills courses.