@fnlb-project/shared 1.5.48 → 1.5.49
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.
- package/dist/flags/index.d.ts +13 -0
- package/dist/flags/index.js +1 -0
- package/package.json +5 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Generated by dts-bundle-generator v9.5.1
|
|
2
|
+
|
|
3
|
+
export declare class BitfieldFlags<T extends number> {
|
|
4
|
+
private bitfield;
|
|
5
|
+
constructor(bitfield?: number);
|
|
6
|
+
static from<T extends number>(...flags: T[]): BitfieldFlags<T>;
|
|
7
|
+
has(flag: T): boolean;
|
|
8
|
+
add(flag: T): this;
|
|
9
|
+
remove(flag: T): this;
|
|
10
|
+
toNumber(): number;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
class i{bitfield;constructor(t=0){this.bitfield=t}static from(...t){let e=0;for(let r of t)e|=r;return new i(e)}has(t){return(this.bitfield&t)!==0}add(t){return this.bitfield|=t,this}remove(t){return this.bitfield&=~t,this}toNumber(){return this.bitfield}}export{i as BitfieldFlags};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fnlb-project/shared",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.49",
|
|
4
4
|
"description": "FNLB Shared Library",
|
|
5
5
|
"files": ["dist"],
|
|
6
6
|
"author": "FNLB-Project",
|
|
@@ -20,6 +20,10 @@
|
|
|
20
20
|
"types": "./dist/errors/index.d.ts",
|
|
21
21
|
"default": "./dist/errors/index.js"
|
|
22
22
|
},
|
|
23
|
+
"./flags": {
|
|
24
|
+
"types": "./dist/flags/index.d.ts",
|
|
25
|
+
"default": "./dist/flags/index.js"
|
|
26
|
+
},
|
|
23
27
|
"./http": {
|
|
24
28
|
"types": "./dist/http/index.d.ts",
|
|
25
29
|
"default": "./dist/http/index.js"
|