Higher Order Guards (Functions) - TypeScript Narrowing #6

Опубликовано: 11 Ноябрь 2021
на канале: Lucas Paganini
1,130
52

The sixth video in our TypeScript Narrowing series. In this video, we cover Higher Order Guards (higher order functions for type guards).

📚 Read the article: https://www.lucaspaganini.com/academy...
🚨 Subscribe to the newsletter: https://www.lucaspaganini.com/newsletter

📧 Email: [email protected]
🐦 Twitter:   / lucaspaganini  
📸 Instagram:   / lucaspaganini  

----------

CHAPTERS
0:00 Introduction
1:10 Higher Order Functions
2:27 Higher Order Guards
2:56 makeIsNot Implementation
3:37 makeIsNot Signature
3:53 Type Guard Function Type
4:11 Predicate Function Type
4:39 Unpack Predicate Function Type
5:23 Back to the Signature
5:55 Library
6:36 Conclusion

RELATED
1. TypeScript CONDITIONAL TYPES - Introduction to Type Functions:    • TypeScript CONDITIONAL TYPES - Introd...  
2. TypeScript INFER Keyword - With Examples:    • TypeScript INFER Keyword - With Examples  
3. TypeScript Narrowing Series:    • What is a Type Guard - TypeScript Nar...  
4. TypeScript Narrowing Part 1 - What is a Type Guard:    • What is a Type Guard - TypeScript Nar...  
5. TypeScript Narrowing Part 2 - Type Guard Operators:    • Fundamental Type Guards - TypeScript ...  
6. TypeScript Narrowing Part 3 - Custom Type Guards:    • Custom Type Guards - TypeScript Narro...  
7. TypeScript Narrowing Part 4 - Discriminated Unions or Tagged Unions Types:    • Discriminated Unions or Tagged Unions...  
8. TypeScript Narrowing Part 5 - Assertion Functions or Assertion Guards:    • Assertion Functions or Assertion Guar...  

REFERENCES
1. Higher Order Functions (Clojure Documentation): https://clojure.org/guides/higher_ord...
2. Functional Programming - Predicate Functions (Stanford Education): https://dcl-prog.stanford.edu/functio...
3. TypeScript Utilities Library - @lucaspaganini/ts (Github Repository): https://github.com/LucasPaganini/ts

#typescript #programming #javascript


Смотрите видео Higher Order Guards (Functions) - TypeScript Narrowing #6 онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Lucas Paganini 11 Ноябрь 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 1,130 раз и оно понравилось 52 людям.