In TypeScript, named constants can be created by using an enum or with a union of string literal types.
Caffeine Addicted Full Stack Cat Dad
I'm a full-stack developer from the Chicago suburbs. I primarily build applications using React, Typescript, and C#. I'm a big fan of Next.js and taking advantage of serverless technologies. Outside of development, I spend a lot of time reading and playing video games. I also happen to be a Sith Lord, so I spend a decent amount of time shooting lightning from my hands and spinning. It's a good trick.
Markdown supported · ⌘↵ to post
No responses yet.