Returns the base type of a branded type.
type Brand = {readonly __brand: unique symbol};type A = UnwrapBrand<string & Brand>;//=> stringtype B = UnwrapBrand<number & Brand>;//=> numbertype C = UnwrapBrand<PropertyKey & Brand>;//=> PropertyKeytype D = UnwrapBrand<(1 | 200n | 'foo' | 'bar') & Brand>;//=> 1 | 200n | 'foo' | 'bar' Copy
type Brand = {readonly __brand: unique symbol};type A = UnwrapBrand<string & Brand>;//=> stringtype B = UnwrapBrand<number & Brand>;//=> numbertype C = UnwrapBrand<PropertyKey & Brand>;//=> PropertyKeytype D = UnwrapBrand<(1 | 200n | 'foo' | 'bar') & Brand>;//=> 1 | 200n | 'foo' | 'bar'
Returns the base type of a branded type.