The registry this flag belongs to. Provides access to flag definitions, the bitwise combinator, and the underlying repository.
Readonly Internal__Do not use. Exists only at the type level — never present at runtime.
Phantom field that forces TypeScript to structurally distinguish flags from
different registries. Without it, two Flag types with different TBrand
parameters would be considered identical due to recursive structural checking.
ReadonlybitsThe raw bitwise value that encodes all active flags.
ReadonlyregistryThe registry this flag belongs to. Provides access to flag definitions, the bitwise combinator, and the underlying repository.
The number of flags that are currently set (i.e. the popcount of bits).
Returns true if the specified flag is currently set.
The flag name to test.
Returns true when no flags are set (i.e. bits equals zero).
Returns an array of the names of all active flags in registration order.
Serializes the flag set to its string representation.
The underlying bitmask as a string.
Returns a record mapping every registered flag name to a boolean indicating whether it is currently set.
Returns a string in the format Flag([<alias>]: <bits>).
If you need to format bits, use flag.bits.toString().
Optionalradix: numberThe radix passed to the underlying numeric toString call
(e.g. 2 for binary, 16 for hex). Defaults to 10.
The raw bitwise value that encodes all active flags.