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