bitwise-flag - v2.1.0
    Preparing search index...

    Function assertSameRegistry

    • Asserts that every flag originates from the same registry as head.

      Registries are compared by reference, so two distinct registries with identical keys are still considered different. This guards operators against combining bits that have incompatible meanings.

      Type Parameters

      • TFlags extends string
      • TBit extends Bit
      • TBrand extends string | symbol

      Parameters

      Returns void

      If any flag in rest belongs to a different registry than head.