@oliversalzburg/js-utils 0.0.58-dev.0 → 0.0.58-dev.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.
package/async.d.ts CHANGED
@@ -10,7 +10,7 @@ import { AnyAsyncFunction, AnyFunctionReturning, ConstructorOf } from "./core.js
10
10
  * @returns A function returning nothing.
11
11
  * @group Async
12
12
  */
13
- export declare const prepareAsyncContext: <TArguments extends unknown[]>(context: AnyAsyncFunction) => (...args: TArguments) => void;
13
+ export declare const prepareAsyncContext: <TArguments extends Array<unknown>>(context: AnyAsyncFunction) => (...args: TArguments) => void;
14
14
  /**
15
15
  * Executes an asynchronous function and resolves with an alternative result
16
16
  * in case the function failed.
package/data/array.d.ts CHANGED
@@ -36,4 +36,4 @@ export declare const difference: <TElements>(a: Array<TElements>, b: Array<TElem
36
36
  * @returns A new array with the filtered items.
37
37
  * @group Array
38
38
  */
39
- export declare const filterType: <TElements>(array: Array<unknown>, InstanceType: ConstructorOf<TElements>) => TElements[];
39
+ export declare const filterType: <TElements>(array: Array<unknown>, InstanceType: ConstructorOf<TElements>) => Array<TElements>;
package/device/shake.d.ts CHANGED
@@ -1,5 +1,3 @@
1
- /// <reference types="@types/web" />
2
- /// <reference types="node" resolution-mode="require"/>
3
1
  /**
4
2
  * The type of the details of a shake event.
5
3
  * @group Types
package/dom/core.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="@types/web" />
2
1
  import { ConstructorOf } from "../core.js";
3
2
  /**
4
3
  * Retrieves an element from the document and returns it if it is
@@ -1,5 +1,3 @@
1
- /// <reference types="@types/web" />
2
- /// <reference types="node" resolution-mode="require"/>
3
1
  /**
4
2
  * Returns a function that will receive errors (or anything else that was `throw`n)
5
3
  * and prints it to a {@linkcode !console}.
package/error/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from "./AbstractError.js";
2
+ export * from "./console.js";
2
3
  export * from "./InternalError.js";
3
4
  export * from "./InvalidArgumentError.js";
4
5
  export * from "./InvalidOperationError.js";
@@ -6,4 +7,3 @@ export * from "./NotImplementedError.js";
6
7
  export * from "./PermissionViolationError.js";
7
8
  export * from "./ResourceConflictError.js";
8
9
  export * from "./UnknownError.js";
9
- export * from "./console.js";
package/error/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from "./AbstractError.js";
2
+ export * from "./console.js";
2
3
  export * from "./InternalError.js";
3
4
  export * from "./InvalidArgumentError.js";
4
5
  export * from "./InvalidOperationError.js";
@@ -6,5 +7,4 @@ export * from "./NotImplementedError.js";
6
7
  export * from "./PermissionViolationError.js";
7
8
  export * from "./ResourceConflictError.js";
8
9
  export * from "./UnknownError.js";
9
- export * from "./console.js";
10
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/error/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/error/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC"}
package/event.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="@types/web" />
2
1
  /**
3
2
  * Creates a {@linkcode !CustomEvent} instance with the given arguments.
4
3
  * @param type - The name of the type of the event.
@@ -1,6 +1,3 @@
1
- /// <reference types="@types/web" />
2
- /// <reference types="node" resolution-mode="require"/>
3
- /// <reference types="node" resolution-mode="require"/>
4
1
  import { ConstructorOf } from "../core.js";
5
2
  import { Random } from "../random.js";
6
3
  import { CanvasSandboxApplication, CanvasSandboxExpectedOptions } from "./canvas-sandbox.js";
@@ -1,4 +1,3 @@
1
- /// <reference types="@types/web" />
2
1
  import { Shake } from "../device/shake.js";
3
2
  import { Random } from "../random.js";
4
3
  import { Canvas } from "./canvas.js";
@@ -1,4 +1,3 @@
1
- /// <reference types="@types/web" />
2
1
  /**
3
2
  * The base class for canvas helpers, which also defines a common interface.
4
3
  *
@@ -1,4 +1,3 @@
1
- /// <reference types="@types/web" />
2
1
  import { Canvas } from "./canvas.js";
3
2
  import { Canvas2DOptions } from "./canvas2d.js";
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="@types/web" />
2
1
  import { Canvas } from "./canvas.js";
3
2
  import { Canvas2DHeadless } from "./canvas2d-headless.js";
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="@types/web" />
2
1
  import { Canvas } from "./canvas.js";
3
2
  /**
4
3
  * A canvas to interact with WebGL.
@@ -1,4 +1,3 @@
1
- /// <reference types="@types/web" />
2
1
  import { Palette } from "./palette.js";
3
2
  /**
4
3
  * Renders the colors of a palette into a canvas.
@@ -1,4 +1,3 @@
1
- /// <reference types="@types/web" />
2
1
  /**
3
2
  * Provides the input as-is.
4
3
  *
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@oliversalzburg/js-utils",
4
- "version": "0.0.58-dev.0",
4
+ "version": "0.0.58-dev.1",
5
5
  "license": "MIT",
6
6
  "author": "Oliver Salzburg <oliver.salzburg@gmail.com>",
7
7
  "repository": {
@@ -59,7 +59,7 @@
59
59
  "prettier-plugin-organize-imports": "3.2.4",
60
60
  "typedoc": "0.26.2",
61
61
  "typedoc-plugin-mdn-links": "3.2.1",
62
- "typescript": "5.4.5",
62
+ "typescript": "5.5.2",
63
63
  "typescript-eslint": "8.0.0-alpha.33"
64
64
  },
65
65
  "engines": {