Comment on Adding type safety to object IDs in TypeScriptparentComments−ssalka2yI prefer the Brand solution, it works well for existing ID sets that you can't easily migrate to have an actual string prefix−throwanem2yAlso for values that aren't strings at all.
Comments
I prefer the Brand solution, it works well for existing ID sets that you can't easily migrate to have an actual string prefix
Also for values that aren't strings at all.