UNPKG

@iobroker/types

Version:
4 lines (3 loc) 114 B
declare const __brand: unique symbol; type Brand<B> = { [__brand]: B }; export type Branded<T, B> = T & Brand<B>;