// Simple way to cheat nominal typing in TypeScript // https://egghead.io/blog/using-branded-types-in-typescript declare const brand: unique symbol export type Brand = T & { [brand]: B }