Creates a branded type of T with the brand U.
Type to brand
Label
Branded type
type Result = Branded<string, 'foo'>// ^? type Result = string & { [symbol]: 'foo' } Copy
type Result = Branded<string, 'foo'>// ^? type Result = string & { [symbol]: 'foo' }
Creates a branded type of T with the brand U.