effect-io-ai

Package: effect
Module: Brand

Brand.Brand.Brands

A utility type to extract the brands from a branded type.

Signature

type Brands<P> = P extends Brand<any> ? Types.UnionToIntersection<
      {
        [k in keyof P[BrandTypeId]]: k extends string | symbol ? Brand<k>
          : never
      }[keyof P[BrandTypeId]]
    >
    : never

Source

Since v2.0.0