@thi.ng/transducers 9.2.3 → 9.2.4
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/CHANGELOG.md +1 -1
- package/as-iterable.d.ts +1 -1
- package/cycle.d.ts +1 -1
- package/interpolate.d.ts +8 -3
- package/norm-range.d.ts +2 -2
- package/package.json +14 -14
- package/sorted-keys.d.ts +1 -1
package/CHANGELOG.md
CHANGED
package/as-iterable.d.ts
CHANGED
package/cycle.d.ts
CHANGED
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
* @param input -
|
|
27
27
|
* @param num -
|
|
28
28
|
*/
|
|
29
|
-
export declare function cycle<T>(input: Iterable<T>, num?: number): Generator<T, void,
|
|
29
|
+
export declare function cycle<T>(input: Iterable<T>, num?: number): Generator<T, void, unknown>;
|
|
30
30
|
//# sourceMappingURL=cycle.d.ts.map
|
package/interpolate.d.ts
CHANGED
|
@@ -2,9 +2,10 @@ import type { Fn2 } from "@thi.ng/api";
|
|
|
2
2
|
import type { Transducer } from "./api.js";
|
|
3
3
|
/**
|
|
4
4
|
* Higher order interpolation transducer. The resulting transducer forms a
|
|
5
|
-
* sliding window and calls `fn` (the given interpolation
|
|
6
|
-
*
|
|
7
|
-
* number of interpolated values per interval.
|
|
5
|
+
* sliding window of input values and calls `fn` (the given interpolation
|
|
6
|
+
* function) `n` times for the current window and a normalized time value to
|
|
7
|
+
* produce the requested number of interpolated values per interval. Yields a
|
|
8
|
+
* sequence of interpolated values.
|
|
8
9
|
*
|
|
9
10
|
* @remarks
|
|
10
11
|
* If the optional `src` iterable is given, `interpolate` returns an iterator of
|
|
@@ -25,9 +26,13 @@ import type { Transducer } from "./api.js";
|
|
|
25
26
|
* import { interpolate } from "@thi.ng/transducers";
|
|
26
27
|
*
|
|
27
28
|
* const res = [...interpolate(
|
|
29
|
+
* // interpolation function
|
|
28
30
|
* ([a, b], t) => a + (b - a) * t,
|
|
31
|
+
* // window size
|
|
29
32
|
* 2,
|
|
33
|
+
* // num samples per window
|
|
30
34
|
* 8,
|
|
35
|
+
* // input values
|
|
31
36
|
* [0, 1, 0, 2]
|
|
32
37
|
* )];
|
|
33
38
|
*
|
package/norm-range.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ export declare function normRange(n: number, includeLast?: boolean, reverse?: bo
|
|
|
42
42
|
* @param includeLastX -
|
|
43
43
|
* @param includeLastY -
|
|
44
44
|
*/
|
|
45
|
-
export declare function normRange2d(nx: number, ny: number, includeLastX?: boolean, includeLastY?: boolean): Generator<number[], void,
|
|
45
|
+
export declare function normRange2d(nx: number, ny: number, includeLastX?: boolean, includeLastY?: boolean): Generator<number[], void, any>;
|
|
46
46
|
/**
|
|
47
47
|
* 3D version of {@link normRange} in Z-major order (i.e. X being innermost
|
|
48
48
|
* loop).
|
|
@@ -52,5 +52,5 @@ export declare function normRange2d(nx: number, ny: number, includeLastX?: boole
|
|
|
52
52
|
* @param includeLastX -
|
|
53
53
|
* @param includeLastY -
|
|
54
54
|
*/
|
|
55
|
-
export declare function normRange3d(nx: number, ny: number, nz: number, includeLastX?: boolean, includeLastY?: boolean, includeLastZ?: boolean): Generator<number[], void,
|
|
55
|
+
export declare function normRange3d(nx: number, ny: number, nz: number, includeLastX?: boolean, includeLastY?: boolean, includeLastZ?: boolean): Generator<number[], void, any>;
|
|
56
56
|
//# sourceMappingURL=norm-range.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/transducers",
|
|
3
|
-
"version": "9.2.
|
|
3
|
+
"version": "9.2.4",
|
|
4
4
|
"description": "Collection of ~170 lightweight, composable transducers, reducers, generators, iterators for functional data transformations",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -40,20 +40,20 @@
|
|
|
40
40
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@thi.ng/api": "^8.11.
|
|
44
|
-
"@thi.ng/arrays": "^2.10.
|
|
45
|
-
"@thi.ng/checks": "^3.6.
|
|
46
|
-
"@thi.ng/compare": "^2.4.
|
|
47
|
-
"@thi.ng/compose": "^3.0.
|
|
48
|
-
"@thi.ng/errors": "^2.5.
|
|
49
|
-
"@thi.ng/math": "^5.11.
|
|
50
|
-
"@thi.ng/random": "^4.0.
|
|
43
|
+
"@thi.ng/api": "^8.11.10",
|
|
44
|
+
"@thi.ng/arrays": "^2.10.1",
|
|
45
|
+
"@thi.ng/checks": "^3.6.12",
|
|
46
|
+
"@thi.ng/compare": "^2.4.2",
|
|
47
|
+
"@thi.ng/compose": "^3.0.13",
|
|
48
|
+
"@thi.ng/errors": "^2.5.16",
|
|
49
|
+
"@thi.ng/math": "^5.11.10",
|
|
50
|
+
"@thi.ng/random": "^4.0.4"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@microsoft/api-extractor": "^7.47.
|
|
54
|
-
"esbuild": "^0.23.
|
|
55
|
-
"typedoc": "^0.26.
|
|
56
|
-
"typescript": "^5.
|
|
53
|
+
"@microsoft/api-extractor": "^7.47.9",
|
|
54
|
+
"esbuild": "^0.23.1",
|
|
55
|
+
"typedoc": "^0.26.7",
|
|
56
|
+
"typescript": "^5.6.2"
|
|
57
57
|
},
|
|
58
58
|
"keywords": [
|
|
59
59
|
"1d",
|
|
@@ -599,5 +599,5 @@
|
|
|
599
599
|
],
|
|
600
600
|
"year": 2016
|
|
601
601
|
},
|
|
602
|
-
"gitHead": "
|
|
602
|
+
"gitHead": "b52baa3750ddd1256892df966ab7ac9b4806a9ef\n"
|
|
603
603
|
}
|
package/sorted-keys.d.ts
CHANGED
|
@@ -8,5 +8,5 @@ import type { Comparator } from "@thi.ng/api";
|
|
|
8
8
|
* @param x -
|
|
9
9
|
* @param cmp -
|
|
10
10
|
*/
|
|
11
|
-
export declare function sortedKeys(x: any, cmp?: Comparator<string>): Generator<string, void,
|
|
11
|
+
export declare function sortedKeys(x: any, cmp?: Comparator<string>): Generator<string, void, unknown>;
|
|
12
12
|
//# sourceMappingURL=sorted-keys.d.ts.map
|