@wayward/types 2.14.4-beta.dev.20250114.1 → 2.14.4-beta.dev.20250116.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.
@@ -9,6 +9,7 @@
9
9
  * https://github.com/WaywardGame/types/wiki
10
10
  */
11
11
  export default class Performance2 {
12
+ static executeAndLogTime(id: string, action: () => void): void;
12
13
  private readonly fns;
13
14
  private _args;
14
15
  args(...args: any[]): this;
@@ -9,6 +9,7 @@
9
9
  * https://github.com/WaywardGame/types/wiki
10
10
  */
11
11
  import type { IFileSystem } from "@wayward/hosts/shared/ipc/fileSystem";
12
+ import Version from "@wayward/utilities/Version";
12
13
  export declare enum LogLineType {
13
14
  Debug = 0,
14
15
  Error = 1,
@@ -129,6 +130,7 @@ declare namespace Log {
129
130
  * @param sources A list of sources to log to.
130
131
  */
131
132
  function trace(...sources: string[]): (...args: any[]) => void;
133
+ function shouldSendErrorReport(versionInfo?: Version.Info | undefined): boolean;
132
134
  /**
133
135
  * Warns about an occurrence of something, due to a specific caller, once per session.
134
136
  * @param skip Number of callsites to skip. Automatically skips this function and its caller.
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.4-beta.dev.20250114.1",
4
+ "version": "2.14.4-beta.dev.20250116.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",