Published on
· Matt Pocock

as const: the most underrated TypeScript feature

This post is auto-generated from a public YouTube video for personal study notes. It is not an endorsement. The transcript is machine-derived and may contain errors; refer to the original video for accuracy.

About this video

'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:

Join the Discord:

Loading transcript…