Readonly Internal__ReadonlyaliasHuman-readable label for the active flags, formed by joining their names
with "+". Returns "EMPTY_FLAG" when no flags are set.
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.
ReadonlysizeThe number of flags that are currently set (i.e. the popcount of bits).
ReadonlyvalueThe raw bitwise value that encodes all active flags.
Use Flag.bits instead
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.
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
Flagtypes with differentTBrandparameters would be considered identical due to recursive structural checking.