@wayward/types 2.14.0-beta.dev.20241002.1 → 2.14.0-beta.dev.20241003.1

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.
@@ -18,6 +18,7 @@ import Component from "@wayward/game/ui/component/Component";
18
18
  import type { TranslationGenerator } from "@wayward/game/ui/component/IComponent";
19
19
  import type HashSet from "@wayward/utilities/collection/set/HashSet";
20
20
  import type { Events, IEventEmitter } from "@wayward/utilities/event/EventEmitter";
21
+ import ResolvablePromise from "@wayward/utilities/promise/ResolvablePromise";
21
22
  export interface ITileInspectionsEvents extends Events<Component> {
22
23
  refreshed(isValid?: boolean): any;
23
24
  updateInspectTypeFilter(): any;
@@ -30,7 +31,7 @@ export default abstract class InspectionsList<INSPECTIONS_HANDLER extends Inspec
30
31
  private readonly paragraphInspectionsInvalid;
31
32
  private inspectTypeFilter;
32
33
  protected inspectionsHandler?: InspectionsHandler;
33
- protected refreshInspectionsOfTypeIsRunning: boolean;
34
+ protected refreshInspectionsOfTypeRunning?: ResolvablePromise;
34
35
  protected inspectionsHandlerUpdatedInspectionsCallback?: (_: any, inspectType: InspectType, inspections: HashSet<Inspection<any>>, oldInspections: HashSet<Inspection<any>> | undefined) => void;
35
36
  private displayLevel;
36
37
  private readonly inspectTypeWrappers;
@@ -40,7 +41,7 @@ export default abstract class InspectionsList<INSPECTIONS_HANDLER extends Inspec
40
41
  all(): Iterable<[InspectType, HashSet<Inspection<any>>]>;
41
42
  setInspectTypeFilter(filter?: (inspectType: InspectType) => boolean): this;
42
43
  refreshInspectTypeFilter(): this;
43
- deregister(): void;
44
+ deregister(): Promise<void>;
44
45
  setDisplayLevel(displayLevel: InfoDisplayLevel): this;
45
46
  refresh(): this;
46
47
  private refreshAsync;
@@ -9,5 +9,5 @@
9
9
  * https://github.com/WaywardGame/types/wiki
10
10
  */
11
11
  export declare class ContainerBucketMarshal {
12
- constructor(_element: WebdriverIO.Element);
12
+ constructor(_element: ContainerBucketMarshal);
13
13
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wayward/types",
3
3
  "description": "TypeScript declarations for Wayward, used for modding.",
4
- "version": "2.14.0-beta.dev.20241002.1",
4
+ "version": "2.14.0-beta.dev.20241003.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",