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

Negated typeof Checks

Using typeof x !== 'string' to narrow to the remaining types in a union.

This lesson is for subscribers

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