import { ReadonlyBigBitField } from '@src/api/entities/bitfield/ReadonlyBigBitField' ; import { BigBitFieldResolvable } from '@src/api' ; import { resolveBigBitField } from '@src/utils/resolve' ; export abstract class BigBitField extends ReadonlyBigBitField { public bitfield ! : bigint ; add ( bits ) { this . bitfield |= ( this . emptyBit | resolveBigBitField ( bits ) ) ; return this ; } remove ( bits ) { this . bitfield &= ( ~ ( this . emptyBit | resolveBigBitField ( bits ) ) ) ; return this ; } }