Hacker News new | ask | show | jobs
by Jasper_ 868 days ago
The easiest way I know of is

    declare const isMyID: unique symbol;
    export type MyID = string & { [isMyID]: true };
1 comments

nice!