Type Signature · #67
What is type `S`?
TypeScript ·Difficulty 2/3
How to play
Read the TypeScript snippet and pick the correct type from four choices. Think about inference, narrowing, and utility types. Press 1–4 or click to answer.
type T = 'a' | 'b' | 'c' | 1 | 2;
type S = Extract<T, string>;
Loading your progress...
Press 1 through 4, or tap a numbered choice, to answer. Back to hub