bard-legends-framework 1.9.1 → 1.10.0

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
@@ -25,6 +25,7 @@ declare function ControllerDecorator<TController>(gateway: new () => TController
25
25
 
26
26
  type EntityClassType<T extends Entity = Entity> = (new (...args: any[]) => T) & {
27
27
  id: number;
28
+ validateID(id: number): boolean;
28
29
  };
29
30
  type EntityID<T extends Entity> = AttachmentID & {
30
31
  readonly __entity: T;
@@ -42,9 +43,7 @@ declare abstract class Entity extends IDAttachable {
42
43
  attachToRoot(): this;
43
44
  }
44
45
 
45
- type SingletonEntityClassType<T extends SingletonEntity = SingletonEntity> = (new (...args: any[]) => T) & {
46
- id: number;
47
- };
46
+ type SingletonEntityClassType<T extends SingletonEntity = SingletonEntity> = EntityClassType<T>;
48
47
  declare abstract class SingletonEntity extends Entity {
49
48
  static getInstanceAsync<T extends SingletonEntity>(this: SingletonEntityClassType<T>): IdleSingleEvent<T>;
50
49
  static continuesSubscription<T extends SingletonEntity>(this: SingletonEntityClassType<T>): IdleSequence<{
package/dist/index.d.ts CHANGED
@@ -25,6 +25,7 @@ declare function ControllerDecorator<TController>(gateway: new () => TController
25
25
 
26
26
  type EntityClassType<T extends Entity = Entity> = (new (...args: any[]) => T) & {
27
27
  id: number;
28
+ validateID(id: number): boolean;
28
29
  };
29
30
  type EntityID<T extends Entity> = AttachmentID & {
30
31
  readonly __entity: T;
@@ -42,9 +43,7 @@ declare abstract class Entity extends IDAttachable {
42
43
  attachToRoot(): this;
43
44
  }
44
45
 
45
- type SingletonEntityClassType<T extends SingletonEntity = SingletonEntity> = (new (...args: any[]) => T) & {
46
- id: number;
47
- };
46
+ type SingletonEntityClassType<T extends SingletonEntity = SingletonEntity> = EntityClassType<T>;
48
47
  declare abstract class SingletonEntity extends Entity {
49
48
  static getInstanceAsync<T extends SingletonEntity>(this: SingletonEntityClassType<T>): IdleSingleEvent<T>;
50
49
  static continuesSubscription<T extends SingletonEntity>(this: SingletonEntityClassType<T>): IdleSequence<{