A designer unfamiliar with TypeScript asks what a `type` alias is. Which analogy best communicates the concept?
-
A
A type alias is like a runtime class that creates objects
-
B
A type alias is like a nickname for a data shape, helping developers refer to complex types by a meaningful name
-
C
A type alias compiles to a JavaScript variable at runtime
-
D
A type alias is a way to import external libraries