Skip to content

Commit 4bc300c

Browse files
refactor(BitField): convert abstract class to normal class
1 parent c08b8eb commit 4bc300c

File tree

2 files changed

+1
-24
lines changed

2 files changed

+1
-24
lines changed

src/structures/Bitfield/MessageFlags.ts

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,3 @@ export default class MessageFlagsBitField extends BitField<
1717
*/
1818
static Flags = MessageFlags as NonReverseEnumFlag<typeof MessageFlags>;
1919
}
20-
// Maybe, should keep it for documentation… not planning to have a doc anytime soon
21-
22-
/**
23-
* @name MessageFlagsBitField
24-
* @kind constructor
25-
* @memberof MessageFlagsBitField
26-
* @param {BitFieldResolvable} [bits=0] Bit(s) to read from
27-
*/
28-
29-
/**
30-
* Data that can be resolved to give a message flags bit field. This can be:
31-
* * A string (see {@link MessageFlagsBitField.Flags})
32-
* * A message flag
33-
* * An instance of {@link MessageFlagsBitField}
34-
* * An array of `MessageFlagsResolvable`
35-
* @typedef {string|number|MessageFlagsBitField|MessageFlagsResolvable[]} MessageFlagsResolvable
36-
*/
37-
38-
/**
39-
* Bitfield of the packed bits
40-
* @type {number}
41-
* @name MessageFlagsBitField#bitfield
42-
*/

src/structures/Bitfield/base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export type BitFieldResolvable<T extends number | bigint = number> =
1515
/**
1616
* Data structure that makes it easy to interact with a bitfield.
1717
*/
18-
export default abstract class BitField<
18+
export default class BitField<
1919
TEnum extends Record<string, number | bigint> = Record<string, number>,
2020
TValue = TEnum[keyof TEnum]
2121
> {

0 commit comments

Comments
 (0)