Comment on Adding type safety to object IDs in TypeScriptparentComments−Jasper_2yThe easiest way I know of is declare const isMyID: unique symbol; export type MyID = string & { [isMyID]: true };−bassdigit2ynice!
Comments
The easiest way I know of is
nice!