Course contentsShow
TypeScript
Lesson 988 of 1,79623. Type AssertionsPro lesson

Const Assertions with as const

Use `as const` to tell TypeScript to infer the narrowest possible literal types for an expression.

This lesson is for subscribers

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