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 - Introductio...
2. TypeScript INFER Keyword - With Examples: • TypeScript INFER Keyword - With Examples
3. TypeScript Narrowing Series: • What is a Type Guard - TypeScript Narrowin...
4. TypeScript Narrowing Part 1 - What is a Type Guard: • What is a Type Guard - TypeScript Narrowin...
5. TypeScript Narrowing Part 2 - Type Guard Operators: • Fundamental Type Guards - TypeScript Narro...
6. TypeScript Narrowing Part 3 - Custom Type Guards: • Custom Type Guards - TypeScript Narrowing #3
7. TypeScript Narrowing Part 4 - Discriminated Unions or Tagged Unions Types: • Discriminated Unions or Tagged Unions Type...
8. TypeScript Narrowing Part 5 - Assertion Functions or Assertion Guards: • Assertion Functions or Assertion Guards - ...
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