UNPKG

@iobroker/types

Version:

Since this package does not start with `@types/`, the types are not automatically included in your project. You need to add a reference to this package in your `tsconfig.json`:

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