as const: the most underrated TypeScript feature
Matt Pocock
•
August 8, 2023
About
No channel description available.
Latest Posts
Video Description
'as const' is an amazingly useful TypeScript feature that most people still don't know about. 00:00 SO underrated 00:12 Objects are mutable! 01:54 How as const works 02:38 Object.freeze 03:19 Deriving types from as const 04:30 keyof typeof Become a TypeScript Wizard with my free beginners TypeScript Course: https://www.totaltypescript.com/tutorials/beginners-typescript Follow Matt on Twitter https://twitter.com/mattpocockuk Join the Discord: https://mattpocock.com/discord
You May Also Like
TypeScript Mastery Essentials
AI-recommended products based on this video
Loading...

Cat Deterrent Spray with Added Citrus Essential Oil,150ml Efficient Anti-Scratch Cat Spray,Safe,Natural Indoor/Outdoor Training Spray for Furniture to Prevent Cat Scratching and Territory Marking
(39)
$19.99
FREE delivery Wed, Feb 25 on your first order
Loading...

Easy@Home Smart Timing Pregnancy Test: Over 99% Accuracy for Early hCG Detection - Fast Results in Just 3 Minutes with Unique Love Heart Indicator | 5 Pack
(195)
$19.99
FREE delivery Thu, Aug 14 on your first order
50+ bought in past month
Loading...

Garmin Venu 3S, GPS Smartwatch, AMOLED Display, Advanced Health and Fitness Features, Up to 10 Days of Battery, 41 MM , French Gray
(3,839)
$519.98$468.37
FREE delivery Thu, Jun 19
400+ bought in past month
Loading...

LEGO Speed Champions Oracle Red Bull Racing RB20 F1 Race Car Model Kits - Building Set for Adults, Ages 18+ with Realistic Features - Red Bull F1 DIY Crafts for Display - Gift Idea for F1 Fans - 77243
(353)
$29.98$29.53
FREE delivery Sat, Jun 14 on your first order
1K+ bought in past month













![[DEPRECATED] TypeScript: Should you use Types or Interfaces?](https://imgz.pc97.com/?width=500&fit=cover&image=https://i.ytimg.com/vi/zM9UPcIyyhQ/hqdefault.jpg)
