"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
How to Use Tuples in TypeScript
#typescript #tupletypesintypescript #tuplesintypescript #arrays #typescriptarrays #whataretuples #usecasesfortuples #typescripttuplesusecases
https://hackernoon.com/how-to-use-tuples-in-typescript
#typescript #tupletypesintypescript #tuplesintypescript #arrays #typescriptarrays #whataretuples #usecasesfortuples #typescripttuplesusecases
https://hackernoon.com/how-to-use-tuples-in-typescript
Hackernoon
How to Use Tuples in TypeScript
With tuples, we can easily construct special kinds of arrays, where elements are of fixed types with respect to an index or position.