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

The as Syntax

Use `value as Type` to assert that value should be treated as Type, even if TypeScript infers differently.

This lesson is for subscribers

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