--

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.

--

--

Michael Landis
Michael Landis

Written by Michael Landis

Front-end web developer, React enthusiast, vagabond.

No responses yet