Hacker News new | ask | show | jobs
by ruined 819 days ago
not sure i understand the utility of this when format strings and string template types already exist.

you can also use typescript-eslint/restrict-template-expressions if you find yourself running into problems with that

https://typescript-eslint.io/rules/restrict-template-express...

1 comments

I think this is less about the utility and more about showing off unusual ways to use the TypeScript type system.