Introduction
Literals are exact values that are JavaScript primitives.
Types
Type Guards
Inference
TypeScript is not all knowing. The following won’t fly:
TypeScript infers test
to be of type {someProp: string
}. There are a
couple of ways to fix this: