bard-legends-framework 1.3.1 → 1.3.2

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/index.d.mts CHANGED
@@ -26,9 +26,17 @@ declare abstract class Entity extends IDAttachable {
26
26
  attachToRoot(): this;
27
27
  }
28
28
 
29
+ type SingletonEntityClassType<T extends SingletonEntity = SingletonEntity> = (new (...args: any[]) => T) & {
30
+ id: number;
31
+ };
29
32
  declare abstract class SingletonEntity extends Entity {
30
- static getInstance<T extends SingletonEntity>(this: EntityClassType<T>): T | undefined;
31
- static getInstanceOrFail<T extends SingletonEntity>(this: EntityClassType<T>): T;
33
+ static getInstanceAsync<T extends SingletonEntity>(this: SingletonEntityClassType<T>): SingleEvent<T>;
34
+ static continuesSubscription<T extends SingletonEntity>(this: SingletonEntityClassType<T>): Sequence<{
35
+ type: 'open' | 'close';
36
+ value: T;
37
+ }>;
38
+ static getInstance<T extends SingletonEntity>(this: SingletonEntityClassType<T>): T | undefined;
39
+ static getInstanceOrFail<T extends SingletonEntity>(this: SingletonEntityClassType<T>): T;
32
40
  constructor();
33
41
  }
34
42
 
package/dist/index.d.ts CHANGED
@@ -26,9 +26,17 @@ declare abstract class Entity extends IDAttachable {
26
26
  attachToRoot(): this;
27
27
  }
28
28
 
29
+ type SingletonEntityClassType<T extends SingletonEntity = SingletonEntity> = (new (...args: any[]) => T) & {
30
+ id: number;
31
+ };
29
32
  declare abstract class SingletonEntity extends Entity {
30
- static getInstance<T extends SingletonEntity>(this: EntityClassType<T>): T | undefined;
31
- static getInstanceOrFail<T extends SingletonEntity>(this: EntityClassType<T>): T;
33
+ static getInstanceAsync<T extends SingletonEntity>(this: SingletonEntityClassType<T>): SingleEvent<T>;
34
+ static continuesSubscription<T extends SingletonEntity>(this: SingletonEntityClassType<T>): Sequence<{
35
+ type: 'open' | 'close';
36
+ value: T;
37
+ }>;
38
+ static getInstance<T extends SingletonEntity>(this: SingletonEntityClassType<T>): T | undefined;
39
+ static getInstanceOrFail<T extends SingletonEntity>(this: SingletonEntityClassType<T>): T;
32
40
  constructor();
33
41
  }
34
42