@moon7/bits
Version:
Type-safe bitwise operations for JavaScript and TypeScript with named bit collections
16 lines (15 loc) • 430 B
TypeScript
/**
* Represents a field of bits as a numeric value
* Used for efficient storage and manipulation of boolean flags
*/
export type BitField = number;
/**
* Constant representing all bits set to 1
* Equivalent to a bitfield with every bit enabled
*/
export declare const ALL: BitField;
/**
* Constant representing all bits set to 0
* Equivalent to a bitfield with every bit disabled
*/
export declare const NONE: BitField;