In this tutorial, Benny demonstrates how to save refactoring efforts using const assertions. He also shows how const assertions can be used with functions by leveraging the const modifier on type parameters.
My FREE programming apps:
https://apps.apple.com/app/id659282498
https://play.google.com/store/apps/de...
My FREE TypeScript Course:
https://typescript.tv/
Timeline:
00:00 - Intro
01:20 - When To Use "as const"
03:25 - Unintentional Comparisions
07:58 - Const Type Parameters
09:02 - Set Constraints to Const Parameters
#typescript #javascript #nodejs