API reference / @evolu/common / Brand / IsBranded
Type Alias: IsBranded<T>
type IsBranded<T> = T extends Brand<string> ? true : false;
Defined in: packages/common/src/Brand.ts:75
Determines whether a type T is a branded type.
Works with any base type intersected with a Brand.
Examples
IsBranded<string>-> falseIsBranded<string & Brand<"X">>-> true
Type Parameters
| Type Parameter |
|---|
T |