"as const" — Typescript's Unsung Hero for Strongly Typed Variables
#typescript #asconst #typescripttutorial #typescripttypes #enumtypesintypescript #tupletypesintypescript #functionreturntypes #typescriptobjectproperties
https://hackernoon.com/as-const-typescripts-unsung-hero-for-strongly-typed-variables
#typescript #asconst #typescripttutorial #typescripttypes #enumtypesintypescript #tupletypesintypescript #functionreturntypes #typescriptobjectproperties
https://hackernoon.com/as-const-typescripts-unsung-hero-for-strongly-typed-variables
Hackernoon
"as const" — Typescript's Unsung Hero for Strongly Typed Variables | HackerNoon
Have you ever worked with types in TypeScript and found yourself wanting more control over how those types behave? Well, there's a handy little feature as const