Assertion Functions or Assertion Guards - TypeScript Narrowing #5

preview_player
Показать описание
The fifth video in our TypeScript Narrowing series. In this video, we cover Assertion Functions (also known as Assertion Guards).

----------

CHAPTERS
0:00 Introduction
0:27 Assertion Functions vs Type Guards
1:29 Early Exits
2:17 Issues with Control Flow Analysis
3:21 Function Expressions with Predefined Types
4:04 Assertions without a Type Predicate
4:24 Conclusion

RELATED

REFERENCES

#typescript #programming #webdevelopment
Рекомендации по теме
Комментарии
Автор

Awesome content, can't wait for the rest of the series. Thank you!

tonyjaradev
Автор

Hey Lucas,
Can you maybe explain how <Prop> is used in AssertHasProps? Does it represent one element from props? Thanks;)

kyuubyemy