Course contentsShow
TypeScript
Lesson 231 of 1,7965. Type Narrowing FundamentalsPro lesson

Type Assertion Function Syntax

Using `asserts param is Type` to both validate and narrow a parameter's type after the call.

This lesson is for subscribers

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