/** * Inner key for brand types. */ declare const BRAND: unique symbol; /** * Creates brand (nominal) type from regular type. * `Brand` = `OrderId` (A string that can only be getting from the API). */ export type Brand = Type & { readonly [BRAND]: Key; }; /** * Returns `true`, if T is brand type, and `false` otherwise. * `IsBrand<3>` = `false`. * `IsBrand` = `true`. */ export type IsBrand = [Type] extends [{ [BRAND]: unknown; }] ? true : false; export {};