@micrio/client 5.4.28 → 5.4.29

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/micrio.min.d.ts CHANGED
@@ -4,7 +4,7 @@ declare module '@micrio/client' {
4
4
  * Defines the current version of the Micrio library.
5
5
  * This constant is used internally and exposed statically via `HTMLMicrioElement.VERSION`.
6
6
  */
7
- export const VERSION = "5.4.28";
7
+ export const VERSION = "5.4.29";
8
8
  /**
9
9
  * Loads an image texture asynchronously. Adds the request to the queue
10
10
  * and returns a Promise that resolves with the TextureBitmap or rejects on error.
@@ -12,6 +12,8 @@ declare module '@micrio/client' {
12
12
  * @returns A Promise resolving to the loaded TextureBitmap.
13
13
  */
14
14
  export const loadTexture: (src: string) => Promise<TextureBitmap>;
15
+ /** Type for error codes */
16
+ export type ErrorCode = typeof ErrorCodes[keyof typeof ErrorCodes];
15
17
  /**
16
18
  * Converts seconds into a human-readable time string (hh?:mm:ss).
17
19
  * @param s Time in seconds. Can be negative for remaining time display.
@@ -88,7 +90,8 @@ declare module '@micrio/client' {
88
90
  * Re-exports all utility modules for convenient importing.
89
91
  * @author Marcel Duin <marcel@micr.io>
90
92
  */
91
- export { MicrioError } from "ts/utils/error";
93
+ export { MicrioError, ErrorCodes, UserErrorMessages } from "ts/utils/error";
94
+ export type { ErrorCode } from "ts/utils/error";
92
95
  export { pyth, mod, limitView } from "ts/utils/math";
93
96
  export { clone, deepCopy } from "ts/utils/object";
94
97
  export { createGUID, slugify, parseTime } from "ts/utils/string";