ctx-core 5.0.0 → 5.0.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/all/a_nowrap/index.d.ts
CHANGED
package/all/map_apply/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { map_fn_T } from '../map_fn/index.js'
|
|
|
3
3
|
* Returns function that returns map of calls to fn_a applying in_arg_a with ...arg_a_
|
|
4
4
|
*/
|
|
5
5
|
export declare function map_apply_<Arg, O>(
|
|
6
|
-
fn_a:map_fn_T[],
|
|
6
|
+
fn_a:map_fn_T<Arg, O>[],
|
|
7
7
|
in_arg_a?:Arg[]
|
|
8
8
|
):(...fn_arg_a:Arg[])=>O[]
|
|
9
9
|
export declare type map_apply_T<Arg, O> = (...fn_arg_a:Arg[])=>O[]
|
package/all/map_apply/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { concat } from '../concat/index.js'
|
|
|
6
6
|
* @returns {(...fn_arg_a:unknown[])=>unknown[]}
|
|
7
7
|
*/
|
|
8
8
|
export function map_apply_(fn_a, in_arg_a = []) {
|
|
9
|
-
return (...fn_arg_a)=>fn_a.map(
|
|
9
|
+
return (...fn_arg_a)=>fn_a.map(fn=>fn(...concat(in_arg_a, fn_arg_a)))
|
|
10
10
|
}
|
|
11
11
|
export {
|
|
12
12
|
map_apply_ as map_fn_apply_fn,
|
package/all/wrap_a/index.d.ts
CHANGED
|
@@ -15,8 +15,8 @@ export declare type wrap_a_T<I> =
|
|
|
15
15
|
I extends readonly unknown[]
|
|
16
16
|
? I
|
|
17
17
|
: readonly I[]
|
|
18
|
-
export declare type wrap_a1_T = wrap_a_T
|
|
19
|
-
export declare type wrap_a1_type = wrap_a_T
|
|
18
|
+
export declare type wrap_a1_T<I> = wrap_a_T<I>
|
|
19
|
+
export declare type wrap_a1_type<I> = wrap_a_T<I>
|
|
20
20
|
export declare type wrap_a_T2<I> =
|
|
21
21
|
|readonly I[]
|
|
22
22
|
|readonly I[][]
|
package/all/wrap_aa/index.d.ts
CHANGED