@wayward/types 2.14.0-beta.dev.20240903.1 → 2.14.0-beta.dev.20240904.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.
@@ -488,4 +488,5 @@ export default class Tile implements IVector4, Partial<ITileContainer>, IFieldOf
488
488
  isTile(): this is Tile;
489
489
  isEntity(): this is Entity;
490
490
  isContainer(): this is IUncastableContainer;
491
+ isTileWithinSquareRadiusOfLitLighthouse(radius?: number): boolean;
491
492
  }
@@ -8,4 +8,4 @@
8
8
  * Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
9
9
  * https://github.com/WaywardGame/types/wiki
10
10
  */
11
- export default function (): void;
11
+ export default function (): Promise<void>;
@@ -9,8 +9,8 @@
9
9
  * https://github.com/WaywardGame/types/wiki
10
10
  */
11
11
  import * as chalk from "ansicolor";
12
- export declare function isDirectory(directory: string): boolean;
13
- export declare function readJsonSync(path: string): unknown;
12
+ export declare function isDirectory(directory: string): Promise<boolean>;
13
+ export declare function readJson(path: string): Promise<unknown>;
14
14
  export declare class TemplateWriter {
15
15
  private files;
16
16
  constructor();
@@ -29,5 +29,5 @@ export declare class TemplateWriter {
29
29
  */
30
30
  updateJSON(file: string | false | 0 | undefined | null, contents: any, report: string | undefined | false): this;
31
31
  message(file: string, message: string, color?: keyof typeof chalk): string;
32
- create(): [boolean, string[] | any];
32
+ create(): Promise<[boolean, string[] | any]>;
33
33
  }
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.20240903.1",
4
+ "version": "2.14.0-beta.dev.20240904.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",