Course contentsShow
TypeScript
Lesson 374 of 1,7968. Interfaces vs Type AliasesPro lesson

Primitive and Literal Types: Only Type Aliases Work

Type aliases can alias primitives, unions of literals, and tuples; interfaces are strictly for object shapes.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.