News for hackers. Stuff that matters.
Re:Adding type safety to object IDs in TypeScript by EvertBouw on Wednesday January 31, 2024 @05:10AM (#39202004)
you can improve it a bit with the library ts-reset

https://github.com/total-typescript/ts-reset

Re:Adding type safety to object IDs in TypeScript by presentation on Wednesday January 31, 2024 @06:08AM (#39202398)
And also can declare your own wrappers to at least achieve it for your own codebase.