Quiz: Type Composition and Variants
Reinforce your understanding of type composition and variant modeling with five multiple-choice questions.
We'll cover the following...
We'll cover the following...
Technical Quiz
1.
What is the type of id
in Merged
below?
type A = { id: string };
type B = { id: number };
type Merged = A & B;
A.
id: string | number
B.
id: never
C.
id: any
D.
TypeScript throws an error at declaration time.
1 / 5
...