Higher Order Guards (Functions) - TypeScript Narrowing #6
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/higher-order-guards-narrowing-6
🚨 Subscribe to the newsletter: https://www.lucaspaganini.com/newsletter
📧 Email: me@lucaspaganini.com
🐦 Twitter: https://twitter.com/lucaspaganini
📸 Instagram: https://www.instagram.com/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: https://youtu.be/N-GWQKjgnnQ
2. TypeScript INFER Keyword - With Examples: https://youtu.be/TGGNWcXx9wQ
3. TypeScript Narrowing Series: https://www.youtube.com/watch?v=EoPubc1u5IY&list=PLLbNB9i2QOKMgZN0qkSaXqq1SIRs-mU7X
4. TypeScript Narrowing Part 1 - What is a Type Guard: https://youtu.be/EoPubc1u5IY
5. TypeScript Narrowing Part 2 - Type Guard Operators: https://youtu.be/ZdMfiVK7fcM
6. TypeScript Narrowing Part 3 - Custom Type Guards: https://youtu.be/FvSaID3TjhI
7. TypeScript Narrowing Part 4 - Discriminated Unions or Tagged Unions Types: https://youtu.be/o0v7lJF11Pg
8. TypeScript Narrowing Part 5 - Assertion Functions or Assertion Guards: https://youtu.be/syBjKTOgFfo
REFERENCES
1. Higher Order Functions (Clojure Documentation): https://clojure.org/guides/higher_order_functions#_higher_order_functions
2. Functional Programming - Predicate Functions (Stanford Education): https://dcl-prog.stanford.edu/function-predicate.html
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
📚 Read the article: https://www.lucaspaganini.com/academy/higher-order-guards-narrowing-6
🚨 Subscribe to the newsletter: https://www.lucaspaganini.com/newsletter
📧 Email: me@lucaspaganini.com
🐦 Twitter: https://twitter.com/lucaspaganini
📸 Instagram: https://www.instagram.com/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: https://youtu.be/N-GWQKjgnnQ
2. TypeScript INFER Keyword - With Examples: https://youtu.be/TGGNWcXx9wQ
3. TypeScript Narrowing Series: https://www.youtube.com/watch?v=EoPubc1u5IY&list=PLLbNB9i2QOKMgZN0qkSaXqq1SIRs-mU7X
4. TypeScript Narrowing Part 1 - What is a Type Guard: https://youtu.be/EoPubc1u5IY
5. TypeScript Narrowing Part 2 - Type Guard Operators: https://youtu.be/ZdMfiVK7fcM
6. TypeScript Narrowing Part 3 - Custom Type Guards: https://youtu.be/FvSaID3TjhI
7. TypeScript Narrowing Part 4 - Discriminated Unions or Tagged Unions Types: https://youtu.be/o0v7lJF11Pg
8. TypeScript Narrowing Part 5 - Assertion Functions or Assertion Guards: https://youtu.be/syBjKTOgFfo
REFERENCES
1. Higher Order Functions (Clojure Documentation): https://clojure.org/guides/higher_order_functions#_higher_order_functions
2. Functional Programming - Predicate Functions (Stanford Education): https://dcl-prog.stanford.edu/function-predicate.html
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
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Custom Type Guards - TypeScript Narrowing #33D Numeric Input Animation with Vanilla HTML, CSS & JavaScriptAssertion Functions or Assertion Guards - TypeScript Narrowing #5Asynchronous Type Guards - TypeScript Narrowing #7JavaScript Hoisting and Function Types - Declarations, Expressions and StatementsTech Learning Goals for 2022 - Going Beyond SoftwareGlassmorphism (or ✨ glassy magic ✨) with pure #HTML and #CSSAngular Structural Directives and their MicrosyntaxEarly Returns/Exits - Code Patterns in JavaScriptCypress 9 - What's New? - Cypress.Commands.overwrite and changes to cy.contains()Unknown vs Any in TypeScript - With ExamplesDiscriminated Unions or Tagged Unions Types - TypeScript Narrowing #4TypeScript INFER Keyword - With ExamplesThe Difference Between Null and Undefined in JavaScript - One MinuteCSS drop-shadow 🆚 box-shadowHow To Create an Animated Burger Menu with HTML, CSS and JavaScriptHow To Create a Toggle Button with Pure HTML, CSS & JavascriptThe Angular ngSrc AttributeFalsy and Truthy in JavaScriptTypeScript CONDITIONAL TYPES - Introduction to Type Functions