typescript-tips

mattpocockuk Matt Pocock ✈️ Modern Frontends (@mattpocockuk) - June 29, 2022 at 5:35 PM

πŸ”₯ TypeScript Tip πŸ”₯

Tired of β€˜as const’? You can use Object.freeze to ensure your objects are readonly at the type level AND the runtime level. pic.twitter.com/5yGa0AiG7v

Tweet link