Explore Library
QuizBeginner

Literal Types in Union

See how unions of literals create a fixed set of allowed values.

Given `type Dir = 'left' | 'right';`, which assignment causes a type error?