Type Alias Brand<B, T>

Brand<B, T>: [T] extends
        | [null]
        | [undefined]
        | [symbol]
        | [void]
    ? Branded<B, T>
    : Branded<B, T> & T

Create a "branded" version of a type. TypeScript won't allow implicit conversion to this type

Type Parameters

  • B extends string
  • T = never