Brand
Brand<
T,B> =T&object
Defined in: src/types/utilities.ts:71
Creates a branded type for better type safety
Type Declaration
__brand
__brand:
B
Type Parameters
T
T
B
B
Example
type UserId = Brand<string, 'UserId'>type ProductId = Brand<string, 'ProductId'>// UserId and ProductId are not assignable to each other