Jan 6, 2024
It seems a lot simpler to make a "literal object as const" (with a "__default" key) than add another library with its own DSL. Gives you type safety and key validation with plain ole TypeScript.
It seems a lot simpler to make a "literal object as const" (with a "__default" key) than add another library with its own DSL. Gives you type safety and key validation with plain ole TypeScript.
Front-end web developer, React enthusiast, vagabond.