3 ms·
const assertions work well: https://devblogs.microsoft.com/typescript/announcing-typescript-3-4/#const-assertions https://devblogs.microsoft.com/typescript/anno
by dabber 3y ago
const assertions work well:
https://devblogs.microsoft.com/typescript/announcing-typescript-3-4/#const-assertions https://devblogs.microsoft.com/typescript/announcing-typescr....
There is an example in the "Objects vs Enums" section of the Enum docs, at the bottom of the page:
https://www.typescriptlang.org/docs/handbook/enums.html#objects-vs-enums https://www.typescriptlang.org/docs/handbook/enums.html#obje...