Typescript - get Type from object with `as cons` syntax and use it like an enum type
Typescript - get Type from object with as cons syntax and use it like an enum type
You can read more about Objects vs Enums at TypeScript's document: https://www.typescriptlang.org/docs/handbook/enums.html#objects-vs-enums.
Document's example:
const ...
loclv.hashnode.dev1 min read