3 ms·
The easiest way I know of is declare const isMyID: unique symbol; export type MyID = string & { [isMyID]: true };
by Jasper_ 3y ago
The easiest way I know of is
declare const isMyID: unique symbol;
export type MyID = string & { [isMyID]: true };
- deleted 3y ago[deleted]
- bassdigit 3y agonice!