@nativewrappers/fivem 0.0.142 → 0.0.143

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,9 @@
1
1
  /**
2
2
  * A basic bitset wrapper to make some bitset code reusable
3
3
  */
4
- export declare class BitSet {
4
+ export declare class BitSet<T extends number> {
5
5
  private value;
6
+ constructor(default_value?: T);
6
7
  /**
7
8
  * Sets the bit at {@param position} to `1`
8
9
  */
@@ -4,7 +4,10 @@ class BitSet {
4
4
  static {
5
5
  __name(this, "BitSet");
6
6
  }
7
- value = 0;
7
+ value;
8
+ constructor(default_value) {
9
+ this.value = default_value ?? 0;
10
+ }
8
11
  /**
9
12
  * Sets the bit at {@param position} to `1`
10
13
  */
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "license": "MIT",
10
10
  "type": "module",
11
- "version": "0.0.142",
11
+ "version": "0.0.143",
12
12
  "repository": {
13
13
  "type": "git",
14
14
  "url": "https://github.com/nativewrappers/nativewrappers.git"