@oliversalzburg/js-utils 0.0.28-dev.117 → 0.0.28-dev.118
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 +1 -1
- package/data/array.d.ts +3 -3
- package/package.json +6 -6
package/async.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export declare const prepareAsyncContext: <TArguments extends unknown[]>(context
|
|
|
25
25
|
* in case the function failed.
|
|
26
26
|
* @group Async
|
|
27
27
|
*/
|
|
28
|
-
export declare const coalesceOnRejection: <TExecutableReturn, TCoalesce, TFilter extends ConstructorOf<Error>>(executable: AnyFunctionReturning<TExecutableReturn | Promise<TExecutableReturn>>, to: TCoalesce, filter?: TFilter
|
|
28
|
+
export declare const coalesceOnRejection: <TExecutableReturn, TCoalesce, TFilter extends ConstructorOf<Error>>(executable: AnyFunctionReturning<TExecutableReturn | Promise<TExecutableReturn>>, to: TCoalesce, filter?: TFilter) => Promise<TExecutableReturn | TCoalesce>;
|
|
29
29
|
/**
|
|
30
30
|
* Wait a given period before continuing execution.
|
|
31
31
|
* @param duration - How many milliseconds to wait.
|
package/data/array.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { ConstructorOf } from "../core.js";
|
|
|
6
6
|
* @returns The passed array in random order.
|
|
7
7
|
* @group Array
|
|
8
8
|
*/
|
|
9
|
-
export declare const shuffleArray: <TElements>(array: TElements
|
|
9
|
+
export declare const shuffleArray: <TElements>(array: Array<TElements>) => TElements[];
|
|
10
10
|
/**
|
|
11
11
|
* Returns an array that holds all items that appear in both
|
|
12
12
|
* passed arrays.
|
|
@@ -17,7 +17,7 @@ export declare const shuffleArray: <TElements>(array: TElements[]) => TElements[
|
|
|
17
17
|
* both passed arrays.
|
|
18
18
|
* @group Array
|
|
19
19
|
*/
|
|
20
|
-
export declare const intersect: <TElements>(a: TElements
|
|
20
|
+
export declare const intersect: <TElements>(a: Array<TElements>, b: Array<TElements>) => TElements[];
|
|
21
21
|
/**
|
|
22
22
|
* Returns an array that holds all items that only appear in `a`.
|
|
23
23
|
* @param a - The first array.
|
|
@@ -26,7 +26,7 @@ export declare const intersect: <TElements>(a: TElements[], b: TElements[]) => T
|
|
|
26
26
|
* @returns A new array which holds the items that ony appear in `a`.
|
|
27
27
|
* @group Array
|
|
28
28
|
*/
|
|
29
|
-
export declare const difference: <TElements>(a: TElements
|
|
29
|
+
export declare const difference: <TElements>(a: Array<TElements>, b: Array<TElements>) => TElements[];
|
|
30
30
|
/**
|
|
31
31
|
* From an array with unknown contents, retrieve all the elements
|
|
32
32
|
* that are of a certain type and return them as a new array.
|
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.28-dev.
|
|
4
|
+
"version": "0.0.28-dev.118",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Oliver Salzburg <oliver.salzburg@gmail.com>",
|
|
7
7
|
"repository": {
|
|
@@ -35,23 +35,23 @@
|
|
|
35
35
|
"@types/eslint": "8.56.5",
|
|
36
36
|
"@types/mocha": "10.0.6",
|
|
37
37
|
"@types/node": "20.11.25",
|
|
38
|
-
"@types/web": "0.0.
|
|
38
|
+
"@types/web": "0.0.141",
|
|
39
39
|
"@typescript-eslint/eslint-plugin": "7.1.1",
|
|
40
40
|
"@typescript-eslint/parser": "7.1.1",
|
|
41
41
|
"c8": "9.1.0",
|
|
42
42
|
"chai": "5.1.0",
|
|
43
43
|
"eslint": "8.57.0",
|
|
44
|
-
"eslint-plugin-jsdoc": "48.2.
|
|
44
|
+
"eslint-plugin-jsdoc": "48.2.1",
|
|
45
45
|
"eslint-plugin-tsdoc": "0.2.17",
|
|
46
46
|
"lint-staged": "15.2.2",
|
|
47
47
|
"mocha": "10.3.0",
|
|
48
48
|
"prettier": "3.2.5",
|
|
49
49
|
"prettier-package-json": "2.8.0",
|
|
50
50
|
"prettier-plugin-organize-imports": "3.2.4",
|
|
51
|
-
"typedoc": "0.25.
|
|
51
|
+
"typedoc": "0.25.12",
|
|
52
52
|
"typedoc-plugin-extras": "3.0.0",
|
|
53
|
-
"typedoc-plugin-mdn-links": "3.1.
|
|
54
|
-
"typescript": "5.
|
|
53
|
+
"typedoc-plugin-mdn-links": "3.1.18",
|
|
54
|
+
"typescript": "5.4.2"
|
|
55
55
|
},
|
|
56
56
|
"packageManager": "yarn@4.1.1"
|
|
57
57
|
}
|