Comment Comment by Jasper_ The easiest way I know of is declare const isMyID: unique symbol; export type MyID = string & { [isMyID]: true }; parent Jasper_ 2 years ago