ctx-core 4.18.0 → 5.0.0
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/CacheControl_1hour_headers_/index.d.ts +5 -0
- package/all/CacheControl_1hour_headers_/index.js +10 -0
- package/all/CacheControl_5min_headers_/index.d.ts +5 -0
- package/all/CacheControl_5min_headers_/index.js +10 -0
- package/all/ContentType__is_binary_/index.d.ts +1 -0
- package/all/ContentType__is_binary_/index.js +9 -0
- package/all/ContentType_json_headers_/index.d.ts +5 -0
- package/all/ContentType_json_headers_/index.js +10 -0
- package/all/ContentType_svg_headers_/index.d.ts +5 -0
- package/all/ContentType_svg_headers_/index.js +10 -0
- package/all/a_in_idx_a_map/index.d.ts +1 -3
- package/all/a_item/index.d.ts +3 -9
- package/all/a_length/index.d.ts +4 -7
- package/all/a_nowrap/index.d.ts +1 -3
- package/all/a_present/index.d.ts +4 -7
- package/all/a_some/index.d.ts +1 -3
- package/all/and/index.d.ts +3 -9
- package/all/and_call/index.d.ts +4 -8
- package/all/andand/index.d.ts +4 -11
- package/all/andand_or/index.d.ts +6 -8
- package/all/andandfn/index.d.ts +3 -12
- package/all/apply/index.d.ts +2 -2
- package/all/arg_i0_a/index.d.ts +1 -1
- package/all/array_types/index.d.ts +21 -28
- package/all/assign_fn_key_a/index.d.ts +1 -3
- package/all/be/index.d.ts +5 -3
- package/all/be_/index.d.ts +69 -48
- package/all/be_/index.js +39 -76
- package/all/be_/index.test.ts +244 -121
- package/all/be_lock_memosig_triple/index.d.ts +16 -22
- package/all/be_lock_memosig_triple/index.test.ts +47 -36
- package/all/be_memo_pair/index.d.ts +14 -11
- package/all/be_memo_pair/index.js +1 -2
- package/all/be_memo_pair/index.test.ts +47 -31
- package/all/be_memosig_triple/index.d.ts +16 -22
- package/all/be_memosig_triple/index.test.ts +48 -34
- package/all/be_sig_triple/index.d.ts +16 -13
- package/all/be_sig_triple/index.js +2 -3
- package/all/be_sig_triple/index.test.ts +42 -29
- package/all/bind_apply/index.d.ts +3 -3
- package/all/bind_call/index.d.ts +10 -11
- package/all/bind_map_apply/index.d.ts +2 -2
- package/all/bind_map_call/index.d.ts +2 -2
- package/all/call/index.d.ts +3 -3
- package/all/call_assign/index.d.ts +2 -6
- package/all/call_fn_a/index.d.ts +4 -3
- package/all/call_or_fn/index.d.ts +1 -4
- package/all/chain/index.d.ts +4 -8
- package/all/chunk_aa/index.d.ts +3 -5
- package/all/clear_ctx/index.d.ts +1 -3
- package/all/combinators/index.d.ts +12 -49
- package/all/compact/index.d.ts +4 -7
- package/all/compact_a_ctx/index.d.ts +1 -3
- package/all/compare/index.d.ts +1 -3
- package/all/compose/index.d.ts +3 -3
- package/all/concat/index.d.ts +2 -6
- package/all/concat_truthy_a/index.d.ts +3 -4
- package/all/ctx/index.d.ts +18 -2
- package/all/ctx/index.js +20 -8
- package/all/ctx/index.test.ts +33 -7
- package/all/curry/index.d.ts +5 -7
- package/all/curry/index.js +6 -3
- package/all/debounce/index.d.ts +12 -12
- package/all/difference_a/index.d.ts +1 -3
- package/all/difference_by/index.d.ts +3 -4
- package/all/difference_set/index.d.ts +1 -5
- package/all/each/index.d.ts +5 -9
- package/all/ensure/index.d.ts +1 -3
- package/all/ensure__refresh/index.d.ts +1 -3
- package/all/eq/index.d.ts +4 -10
- package/all/eql/index.d.ts +3 -9
- package/all/eql_a/index.d.ts +1 -3
- package/all/eql_fn_a/index.d.ts +1 -3
- package/all/every/index.d.ts +3 -9
- package/all/exclude/index.d.ts +1 -4
- package/all/ext_R_mime/index.d.ts +86 -0
- package/all/ext_R_mime/index.js +86 -0
- package/all/falsy_async_guard/index.d.ts +3 -4
- package/all/falsy_guard/index.d.ts +4 -3
- package/all/fetch__template_pair/index.test.ts +5 -5
- package/all/filter/index.d.ts +4 -12
- package/all/find/index.d.ts +6 -10
- package/all/first/index.d.ts +2 -7
- package/all/flatten/index.d.ts +2 -6
- package/all/flip/index.d.ts +3 -3
- package/all/hasOwnProperty_pick/index.d.ts +4 -4
- package/all/head_arg_a/index.d.ts +4 -3
- package/all/http__headers__assign/index.d.ts +11 -0
- package/all/http__headers__assign/index.js +11 -0
- package/all/idx/index.d.ts +1 -3
- package/all/idx_reject/index.d.ts +3 -9
- package/all/idx_sort_a/index.d.ts +1 -3
- package/all/idx_sort_a__sort_idx_o/index.d.ts +1 -3
- package/all/idx_sort_r_a/index.d.ts +1 -3
- package/all/if_null_set_false/index.d.ts +1 -3
- package/all/ifelse/index.d.ts +5 -3
- package/all/iife/index.d.ts +3 -3
- package/all/index.d.ts +9 -0
- package/all/index.js +9 -0
- package/all/internal_server_error__throw/index.d.ts +5 -0
- package/all/internal_server_error__throw/index.js +7 -0
- package/all/intersection_a/index.d.ts +5 -6
- package/all/intersection_by/index.d.ts +3 -4
- package/all/intersection_set/index.d.ts +1 -3
- package/all/isArray/index.d.ts +2 -2
- package/all/last/index.d.ts +2 -7
- package/all/left_and/index.d.ts +1 -3
- package/all/left_or/index.d.ts +1 -3
- package/all/many_andand/index.d.ts +7 -6
- package/all/many_andand_or/index.d.ts +2 -8
- package/all/map/index.d.ts +4 -18
- package/all/map_andand/index.d.ts +3 -9
- package/all/map_andand_or/index.d.ts +1 -3
- package/all/map_andandfn/index.d.ts +2 -6
- package/all/map_apply/index.d.ts +5 -8
- package/all/map_call/index.d.ts +5 -8
- package/all/map_find/index.d.ts +3 -11
- package/all/map_fn/index.d.ts +1 -4
- package/all/map_obj/index.d.ts +3 -12
- package/all/map_obj_andand/index.d.ts +2 -8
- package/all/merge/index.d.ts +1 -4
- package/all/mixin/index.d.ts +1 -4
- package/all/neq/index.d.ts +2 -6
- package/all/neql/index.d.ts +2 -6
- package/all/noinit/index.d.ts +5 -8
- package/all/not/index.d.ts +3 -9
- package/all/notnot/index.d.ts +2 -4
- package/all/nullish__guard/index.d.ts +3 -4
- package/all/nullish__guard__async/index.d.ts +3 -4
- package/all/nullish__none/index.d.ts +1 -3
- package/all/o_a_present/index.d.ts +2 -6
- package/all/o_some/index.d.ts +1 -3
- package/all/offset_destructure_aa/index.d.ts +1 -3
- package/all/offset_i_slice/index.d.ts +2 -6
- package/all/one_andand/index.d.ts +3 -3
- package/all/one_andand_or/index.d.ts +3 -5
- package/all/or/index.d.ts +6 -17
- package/all/or_property/index.d.ts +1 -5
- package/all/promise_timeout/index.d.ts +4 -4
- package/all/prototype_mixin/index.d.ts +4 -3
- package/all/prototype_mixin/index.js +3 -3
- package/all/push/index.d.ts +2 -6
- package/all/r_val_a/index.d.ts +2 -6
- package/all/rank/index.d.ts +3 -4
- package/all/reduce/index.d.ts +10 -23
- package/all/reject/index.d.ts +7 -14
- package/all/remove/index.d.ts +2 -6
- package/all/remove_idx/index.d.ts +4 -4
- package/all/resolver_curry/index.d.ts +2 -2
- package/all/reverse/index.d.ts +2 -10
- package/all/right_and/index.d.ts +1 -3
- package/all/right_or/index.d.ts +1 -3
- package/all/rmemo/index.js +3 -3
- package/all/rmemo__wait/index.test.ts +1 -1
- package/all/run/index.d.ts +1 -4
- package/all/selector_splice/index.d.ts +1 -3
- package/all/slice/index.d.ts +5 -15
- package/all/slice_arg_a/index.d.ts +3 -12
- package/all/slice_arg_spread_a/index.d.ts +3 -11
- package/all/sort/index.d.ts +4 -14
- package/all/sort_a/index.d.ts +2 -6
- package/all/sort_idx_a/index.d.ts +2 -6
- package/all/sort_idx_o/index.d.ts +2 -6
- package/all/sort_val_a/index.d.ts +2 -6
- package/all/sort_val_a__transition_idx_a/index.d.ts +4 -12
- package/all/sort_val_a__transition_idx_a/index.js +4 -2
- package/all/sparse_a/index.d.ts +1 -3
- package/all/splice/index.d.ts +2 -6
- package/all/spread/index.d.ts +2 -6
- package/all/tap/index.d.ts +1 -3
- package/all/test/index.d.ts +12 -0
- package/all/test/index.js +1 -0
- package/all/throttle/index.d.ts +2 -2
- package/all/throttle/index.js +8 -7
- package/all/tick/index.d.ts +1 -5
- package/all/timeout_promise/index.d.ts +1 -5
- package/all/times/index.d.ts +1 -5
- package/all/tup/index.d.ts +22 -6
- package/all/union_a/index.d.ts +1 -3
- package/all/union_set/index.d.ts +1 -5
- package/all/val/index.d.ts +1 -3
- package/all/value_r/index.d.ts +2 -6
- package/all/weak_r/index.d.ts +3 -3
- package/all/wrap_a/index.d.ts +4 -12
- package/all/wrap_a_item/index.d.ts +4 -3
- package/all/wrap_aa/index.d.ts +2 -8
- package/all/wrap_aa_item/index.d.ts +4 -3
- package/all/wrap_concat/index.d.ts +1 -5
- package/http/index.d.ts +8 -0
- package/http/index.js +8 -0
- package/package.json +35 -10
- package/test/index.d.ts +1 -0
- package/test/index.js +1 -0
package/all/idx/index.d.ts
CHANGED
|
@@ -2,9 +2,7 @@ import type { is_match__T } from '../array_types/index.js'
|
|
|
2
2
|
/**
|
|
3
3
|
* Returns idx of first match in `a` with `compare`.
|
|
4
4
|
*/
|
|
5
|
-
export declare function idx_<
|
|
6
|
-
Val extends unknown = unknown
|
|
7
|
-
>(
|
|
5
|
+
export declare function idx_<Val>(
|
|
8
6
|
in_a:readonly Val[]|undefined,
|
|
9
7
|
compare:is_match__T<Val>
|
|
10
8
|
):number
|
|
@@ -2,14 +2,10 @@ import type { is_match__T } from '../array_types/index.js'
|
|
|
2
2
|
/**
|
|
3
3
|
* Returns Array of indices `idx` not rejected by `is_match_`.
|
|
4
4
|
*/
|
|
5
|
-
export declare function idx_reject<
|
|
6
|
-
Val extends unknown = unknown
|
|
7
|
-
>(
|
|
5
|
+
export declare function idx_reject<Val>(
|
|
8
6
|
a:readonly Val[], is_match_:is_match__T<Val>
|
|
9
7
|
):number[]
|
|
10
|
-
export declare function maybe_idx_reject<
|
|
11
|
-
Val extends unknown = unknown, Or = null
|
|
12
|
-
>(
|
|
8
|
+
export declare function maybe_idx_reject<Val, Or = null>(
|
|
13
9
|
maybe_a:readonly Val[]|undefined,
|
|
14
10
|
is_match_:is_match__T<Val>,
|
|
15
11
|
or?:Or
|
|
@@ -18,9 +14,7 @@ export { idx_reject as reject__idx, }
|
|
|
18
14
|
/**
|
|
19
15
|
* Returns function that returns value from [idx_reject](#idx_reject) with `is_match_` argument.
|
|
20
16
|
*/
|
|
21
|
-
export declare function idx_reject_<
|
|
22
|
-
Val extends unknown = unknown
|
|
23
|
-
>(
|
|
17
|
+
export declare function idx_reject_<Val>(
|
|
24
18
|
is_match_:is_match__T<Val>
|
|
25
19
|
):(a:readonly Val[])=>number[]
|
|
26
20
|
export {
|
|
@@ -2,9 +2,7 @@ import type { sort_idx_o_T } from '../array_types/index.js'
|
|
|
2
2
|
/**
|
|
3
3
|
* Returns [sort_idx_o_T](#sort_idx_o_T) derived from `val_a` sorted by `sort_idx_a`.
|
|
4
4
|
*/
|
|
5
|
-
export declare function idx_sort_a__sort_idx_o_<
|
|
6
|
-
I extends unknown = unknown
|
|
7
|
-
>(
|
|
5
|
+
export declare function idx_sort_a__sort_idx_o_<I>(
|
|
8
6
|
val_a:readonly I[], sort_idx_a:readonly number[]
|
|
9
7
|
):sort_idx_o_T<I>
|
|
10
8
|
export {
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Sets obj values to false when `== null`.
|
|
3
3
|
*/
|
|
4
|
-
export declare function if_null_set_false<
|
|
5
|
-
I extends unknown = unknown
|
|
6
|
-
>(val:I, ...key_a:string[]):I
|
|
4
|
+
export declare function if_null_set_false<I>(val:I, ...key_a:string[]):I
|
|
7
5
|
export { if_null_set_false as set__false__if__null }
|
package/all/ifelse/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Returns `if_fn(conditional)` if `conditional` else `else_fn(conditional)`
|
|
3
3
|
*/
|
|
4
|
-
export declare function ifelse<
|
|
5
|
-
T
|
|
6
|
-
|
|
4
|
+
export declare function ifelse<T, I = T, E = I>(
|
|
5
|
+
conditional:T,
|
|
6
|
+
if_:(conditional:T)=>I,
|
|
7
|
+
else_:(conditional:T)=>E
|
|
8
|
+
):I|E
|
package/all/iife/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Returns an Immediately-invoked function expression
|
|
3
3
|
*/
|
|
4
|
-
export declare function iife<
|
|
5
|
-
T
|
|
6
|
-
|
|
4
|
+
export declare function iife<T>(
|
|
5
|
+
fn:(...fn_arg_a:unknown[])=>T,
|
|
6
|
+
...arg_a:unknown[]):T
|
package/all/index.d.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
export * from './CacheControl_1hour_headers_/index.js'
|
|
2
|
+
export * from './CacheControl_5min_headers_/index.js'
|
|
3
|
+
export * from './ContentType__is_binary_/index.js'
|
|
4
|
+
export * from './ContentType_json_headers_/index.js'
|
|
5
|
+
export * from './ContentType_svg_headers_/index.js'
|
|
1
6
|
export * from './LessThan/index.js'
|
|
2
7
|
export * from './MAX_INT/index.js'
|
|
3
8
|
export * from './MIN_INT/index.js'
|
|
@@ -118,6 +123,7 @@ export * from './error_o/index.js'
|
|
|
118
123
|
export * from './every/index.js'
|
|
119
124
|
export * from './every_arg/index.js'
|
|
120
125
|
export * from './exclude/index.js'
|
|
126
|
+
export * from './ext_R_mime/index.js'
|
|
121
127
|
export * from './extract/index.js'
|
|
122
128
|
export * from './falsy/index.js'
|
|
123
129
|
export * from './falsy__none/index.js'
|
|
@@ -160,6 +166,7 @@ export * from './hour/index.js'
|
|
|
160
166
|
export * from './hour/index.js'
|
|
161
167
|
export * from './hour_seconds/index.js'
|
|
162
168
|
export * from './hour_seconds/index.js'
|
|
169
|
+
export * from './http__headers__assign/index.js'
|
|
163
170
|
export * from './http_error/index.js'
|
|
164
171
|
export * from './idx/index.js'
|
|
165
172
|
export * from './idx_a/index.js'
|
|
@@ -175,6 +182,7 @@ export * from './iife/index.js'
|
|
|
175
182
|
export * from './indexOf/index.js'
|
|
176
183
|
export * from './insert/index.js'
|
|
177
184
|
export * from './int_hex/index.js'
|
|
185
|
+
export * from './internal_server_error__throw/index.js'
|
|
178
186
|
export * from './intersection_a/index.js'
|
|
179
187
|
export * from './intersection_by/index.js'
|
|
180
188
|
export * from './intersection_set/index.js'
|
|
@@ -353,6 +361,7 @@ export * from './std/index.js'
|
|
|
353
361
|
export * from './sub/index.js'
|
|
354
362
|
export * from './tap/index.js'
|
|
355
363
|
export * from './tempfile_path/index.js'
|
|
364
|
+
export * from './test/index.js'
|
|
356
365
|
export * from './tf/index.js'
|
|
357
366
|
export * from './throttle/index.js'
|
|
358
367
|
export * from './tick/index.js'
|
package/all/index.js
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
export * from './CacheControl_1hour_headers_/index.js'
|
|
2
|
+
export * from './CacheControl_5min_headers_/index.js'
|
|
3
|
+
export * from './ContentType__is_binary_/index.js'
|
|
4
|
+
export * from './ContentType_json_headers_/index.js'
|
|
5
|
+
export * from './ContentType_svg_headers_/index.js'
|
|
1
6
|
export * from './LessThan/index.js'
|
|
2
7
|
export * from './MAX_INT/index.js'
|
|
3
8
|
export * from './MIN_INT/index.js'
|
|
@@ -118,6 +123,7 @@ export * from './error_o/index.js'
|
|
|
118
123
|
export * from './every/index.js'
|
|
119
124
|
export * from './every_arg/index.js'
|
|
120
125
|
export * from './exclude/index.js'
|
|
126
|
+
export * from './ext_R_mime/index.js'
|
|
121
127
|
export * from './extract/index.js'
|
|
122
128
|
export * from './falsy/index.js'
|
|
123
129
|
export * from './falsy__none/index.js'
|
|
@@ -160,6 +166,7 @@ export * from './hour/index.js'
|
|
|
160
166
|
export * from './hour/index.js'
|
|
161
167
|
export * from './hour_seconds/index.js'
|
|
162
168
|
export * from './hour_seconds/index.js'
|
|
169
|
+
export * from './http__headers__assign/index.js'
|
|
163
170
|
export * from './http_error/index.js'
|
|
164
171
|
export * from './idx/index.js'
|
|
165
172
|
export * from './idx_a/index.js'
|
|
@@ -175,6 +182,7 @@ export * from './iife/index.js'
|
|
|
175
182
|
export * from './indexOf/index.js'
|
|
176
183
|
export * from './insert/index.js'
|
|
177
184
|
export * from './int_hex/index.js'
|
|
185
|
+
export * from './internal_server_error__throw/index.js'
|
|
178
186
|
export * from './intersection_a/index.js'
|
|
179
187
|
export * from './intersection_by/index.js'
|
|
180
188
|
export * from './intersection_set/index.js'
|
|
@@ -353,6 +361,7 @@ export * from './std/index.js'
|
|
|
353
361
|
export * from './sub/index.js'
|
|
354
362
|
export * from './tap/index.js'
|
|
355
363
|
export * from './tempfile_path/index.js'
|
|
364
|
+
export * from './test/index.js'
|
|
356
365
|
export * from './tf/index.js'
|
|
357
366
|
export * from './throttle/index.js'
|
|
358
367
|
export * from './tick/index.js'
|
|
@@ -4,12 +4,11 @@ import type { wrap_aa_T } from '../wrap_aa/index.js'
|
|
|
4
4
|
* Returns the intersection of n arrays
|
|
5
5
|
* @see {@link http://www.2ality.com/2015/01/es6-set-operations.html}
|
|
6
6
|
*/
|
|
7
|
-
export declare function intersection_a_<
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
> = wrap_aa_T<I> extends readonly (infer O)[][] ? readonly O[] : never
|
|
7
|
+
export declare function intersection_a_<I>(aa_nowrap:a_nowrap_T<I>):intersection_a_T<I>
|
|
8
|
+
export declare type intersection_a_T<I> =
|
|
9
|
+
wrap_aa_T<I> extends readonly (infer O)[][]
|
|
10
|
+
? readonly O[]
|
|
11
|
+
: never
|
|
13
12
|
export {
|
|
14
13
|
intersection_a_ as _intersection__a1,
|
|
15
14
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { wrap_aa_item_T } from '../wrap_aa_item/index.js'
|
|
2
|
-
export declare function intersection_by_<
|
|
3
|
-
I
|
|
4
|
-
>
|
|
5
|
-
aa_nowrap:I, by_?:(v:wrap_aa_item_T<I>)=>O
|
|
2
|
+
export declare function intersection_by_<I, O>(
|
|
3
|
+
aa_nowrap:I,
|
|
4
|
+
by_?:(v:wrap_aa_item_T<I>)=>O
|
|
6
5
|
):O[]
|
|
7
6
|
export {
|
|
8
7
|
intersection_by_ as _intersection_by,
|
|
@@ -3,9 +3,7 @@ import type { a_nowrap_T } from '../a_nowrap/index.js'
|
|
|
3
3
|
* Returns a `set` with the intersection of the members
|
|
4
4
|
* @see {@link http://www.2ality.com/2015/01/es6-set-operations.html}
|
|
5
5
|
*/
|
|
6
|
-
export declare function intersection_set_<
|
|
7
|
-
I extends unknown = unknown
|
|
8
|
-
>(
|
|
6
|
+
export declare function intersection_set_<I>(
|
|
9
7
|
member_a_nowrap_a_nowrap:a_nowrap_T<Set<I>>
|
|
10
8
|
):Set<I>
|
|
11
9
|
export {
|
package/all/isArray/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const native_isArray:(arg:
|
|
1
|
+
export declare const native_isArray:(arg:unknown)=>arg is unknown[]
|
|
2
2
|
/**
|
|
3
3
|
* Is the argument an Array?
|
|
4
4
|
*/
|
|
5
|
-
export declare function isArray<I
|
|
5
|
+
export declare function isArray<I>(obj:I):boolean
|
package/all/last/index.d.ts
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Returns the _last item in the in_a
|
|
3
3
|
*/
|
|
4
|
-
export declare function last_<
|
|
5
|
-
|
|
6
|
-
>(a:readonly I[]):I|undefined
|
|
7
|
-
export declare function maybe_last_<
|
|
8
|
-
I extends unknown = unknown,
|
|
9
|
-
Or = null
|
|
10
|
-
>(
|
|
4
|
+
export declare function last_<I>(a:readonly I[]):I|undefined
|
|
5
|
+
export declare function maybe_last_<I, Or = null>(
|
|
11
6
|
maybe_a:readonly I[]|undefined,
|
|
12
7
|
or?:Or
|
|
13
8
|
):I|Or
|
package/all/left_and/index.d.ts
CHANGED
|
@@ -3,9 +3,7 @@ import type { falsy } from '../falsy/index.js'
|
|
|
3
3
|
/**
|
|
4
4
|
* Returns function that returns the first falsy in `a_unwrap` or `value`.
|
|
5
5
|
*/
|
|
6
|
-
export declare function left_and_<
|
|
7
|
-
Val extends unknown = unknown
|
|
8
|
-
>(a_unwrap:a_nowrap_T<Val>):(val:Val)=>Val|falsy
|
|
6
|
+
export declare function left_and_<Val>(a_unwrap:a_nowrap_T<Val>):(val:Val)=>Val|falsy
|
|
9
7
|
export {
|
|
10
8
|
left_and_ as _left_and,
|
|
11
9
|
left_and_ as _and__left,
|
package/all/left_or/index.d.ts
CHANGED
|
@@ -2,9 +2,7 @@ import type { a_nowrap_T } from '../a_nowrap/index.js'
|
|
|
2
2
|
/**
|
|
3
3
|
* Returns function that returns first truthy item in `a_unwrap` or value.
|
|
4
4
|
*/
|
|
5
|
-
export declare function left_or_<
|
|
6
|
-
Val extends unknown = unknown
|
|
7
|
-
>(a_unwrap:a_nowrap_T<Val>):(val:Val)=>(Val|undefined)
|
|
5
|
+
export declare function left_or_<Val>(a_unwrap:a_nowrap_T<Val>):(val:Val)=>(Val|undefined)
|
|
8
6
|
export {
|
|
9
7
|
left_or_ as _left_or,
|
|
10
8
|
left_or_ as _or__left,
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { andand_key__T } from '../andand/index.js'
|
|
2
|
-
export declare function many_andand_<
|
|
3
|
-
Val
|
|
4
|
-
|
|
2
|
+
export declare function many_andand_<Val>(
|
|
3
|
+
...name_a:(keyof Val|andand_key__T<Val>)[]
|
|
4
|
+
):many_andand_T<Val>
|
|
5
5
|
export {
|
|
6
6
|
many_andand_ as _many_andand,
|
|
7
7
|
many_andand_ as _andand__many,
|
|
8
8
|
}
|
|
9
|
-
export declare type many_andand_T<
|
|
10
|
-
Val
|
|
11
|
-
|
|
9
|
+
export declare type many_andand_T<Val> = (
|
|
10
|
+
obj:Val,
|
|
11
|
+
...arg_a:(keyof Val|andand_key__T<Val>)[]
|
|
12
|
+
)=>Val|null
|
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
import type { andand_key_T } from '../andand/index.js'
|
|
2
2
|
import type { andand_or_T } from '../andand_or/index.js'
|
|
3
|
-
export declare function many_andand_or_<
|
|
4
|
-
Val extends unknown = unknown,
|
|
5
|
-
Out extends unknown = unknown
|
|
6
|
-
>(
|
|
3
|
+
export declare function many_andand_or_<Val, Out>(
|
|
7
4
|
name_a:andand_key_T<Val>[], or_:andand_or_T<Val, Out>
|
|
8
5
|
):many_andand_or_T<Val, Out>
|
|
9
|
-
export declare type many_andand_or_T<
|
|
10
|
-
Val extends unknown = unknown,
|
|
11
|
-
Out extends unknown = unknown
|
|
12
|
-
> = (obj:Val, ...arg_a:andand_key_T<Val>[])=>Out
|
|
6
|
+
export declare type many_andand_or_T<Val, Out> = (obj:Val, ...arg_a:andand_key_T<Val>[])=>Out
|
|
13
7
|
export {
|
|
14
8
|
many_andand_or_ as _many_andand_or,
|
|
15
9
|
many_andand_or_ as _andand_or__many,
|
package/all/map/index.d.ts
CHANGED
|
@@ -2,18 +2,11 @@ import { map_fn_T } from '../map_fn/index.js'
|
|
|
2
2
|
/**
|
|
3
3
|
* Map return value of `fn(a[], i)` into an Array.
|
|
4
4
|
*/
|
|
5
|
-
export declare function map<
|
|
6
|
-
Val extends unknown = unknown,
|
|
7
|
-
Out extends unknown = unknown
|
|
8
|
-
>(
|
|
5
|
+
export declare function map<Val, Out>(
|
|
9
6
|
a:readonly Val[],
|
|
10
7
|
fn:map_fn_T<Val, Out>
|
|
11
8
|
):Out[]
|
|
12
|
-
export declare function maybe_map<
|
|
13
|
-
Val extends unknown,
|
|
14
|
-
Out extends unknown,
|
|
15
|
-
Or = null
|
|
16
|
-
>(
|
|
9
|
+
export declare function maybe_map<Val, Out, Or = null>(
|
|
17
10
|
maybe_a:readonly Val[]|undefined,
|
|
18
11
|
fn:map_fn_T<Val, Out>,
|
|
19
12
|
or?:Or
|
|
@@ -21,17 +14,10 @@ export declare function maybe_map<
|
|
|
21
14
|
/**
|
|
22
15
|
* Returns Function returning [map](#map) with `fn`.
|
|
23
16
|
*/
|
|
24
|
-
export declare function map_<
|
|
25
|
-
I extends unknown = unknown,
|
|
26
|
-
O extends unknown = unknown
|
|
27
|
-
>(
|
|
17
|
+
export declare function map_<I, O>(
|
|
28
18
|
fn:(val:I, idx:number)=>O
|
|
29
19
|
):(a:readonly I[])=>O[]
|
|
30
|
-
export declare function maybe_map_<
|
|
31
|
-
I extends unknown = unknown,
|
|
32
|
-
O extends unknown = unknown,
|
|
33
|
-
Or = null
|
|
34
|
-
>(
|
|
20
|
+
export declare function maybe_map_<I, O, Or = null>(
|
|
35
21
|
fn:(val:I, idx:number)=>O,
|
|
36
22
|
or?:Or
|
|
37
23
|
):(a:readonly I[]|undefined)=>O[]|Or
|
|
@@ -2,15 +2,11 @@ import type { andand_key_T } from '../andand/index.js'
|
|
|
2
2
|
/**
|
|
3
3
|
* Returns Array of mapped `a` with `_andand(...name_a)`.
|
|
4
4
|
*/
|
|
5
|
-
export declare function map_andand<
|
|
6
|
-
In extends unknown = unknown, Out extends unknown = unknown
|
|
7
|
-
>(
|
|
5
|
+
export declare function map_andand<In, Out>(
|
|
8
6
|
a:readonly In[],
|
|
9
7
|
...name_a:readonly andand_key_T<In>[]
|
|
10
8
|
):Out[]
|
|
11
|
-
export declare function maybe_map_andand<
|
|
12
|
-
Val extends unknown, Out extends unknown
|
|
13
|
-
>(
|
|
9
|
+
export declare function maybe_map_andand<Val, Out>(
|
|
14
10
|
a:readonly Val[]|undefined,
|
|
15
11
|
...name_a:readonly andand_key_T<Val>[]
|
|
16
12
|
):Out[]|undefined
|
|
@@ -18,9 +14,7 @@ export { map_andand as map__andand, }
|
|
|
18
14
|
/**
|
|
19
15
|
* Returns function that returns value from [map_andand](#map_andand) with `...attr_a`.
|
|
20
16
|
*/
|
|
21
|
-
export declare function map_andand_<
|
|
22
|
-
In extends unknown, Out extends unknown
|
|
23
|
-
>(
|
|
17
|
+
export declare function map_andand_<In, Out>(
|
|
24
18
|
...attr_a:readonly andand_key_T<In>[]
|
|
25
19
|
):(a:readonly In[])=>Out[]
|
|
26
20
|
export {
|
|
@@ -3,9 +3,7 @@ import type { andand_or_T } from '../andand_or/index.js'
|
|
|
3
3
|
/**
|
|
4
4
|
* Returns Array of mapped `a` with `_andand(...attr_a)` or the return value of `or_fn`.
|
|
5
5
|
*/
|
|
6
|
-
export declare function map_andand_or<
|
|
7
|
-
In extends unknown = unknown, Out extends unknown = unknown
|
|
8
|
-
>(
|
|
6
|
+
export declare function map_andand_or<In, Out>(
|
|
9
7
|
a:readonly In[],
|
|
10
8
|
attr_a:readonly andand_key_T<In>[],
|
|
11
9
|
or_fn:andand_or_T<In, Out>
|
|
@@ -2,9 +2,7 @@ import type { andand_key_T } from '../andand/index.js'
|
|
|
2
2
|
/**
|
|
3
3
|
* Returns Array of mapped `a` with `andandfn_(...attr_a)`
|
|
4
4
|
*/
|
|
5
|
-
export declare function map_andandfn<
|
|
6
|
-
In extends unknown = unknown, Out extends unknown = unknown
|
|
7
|
-
>(
|
|
5
|
+
export declare function map_andandfn<In, Out>(
|
|
8
6
|
a:readonly In[],
|
|
9
7
|
...attr_a:readonly andand_key_T<In>[]
|
|
10
8
|
):Out[]
|
|
@@ -15,9 +13,7 @@ export {
|
|
|
15
13
|
/**
|
|
16
14
|
* Returns function that returns value from [map_andand_](#map_andand_) with `...attr_a`.
|
|
17
15
|
*/
|
|
18
|
-
export declare function map_andandfn_<
|
|
19
|
-
Val extends unknown, Out extends unknown
|
|
20
|
-
>(
|
|
16
|
+
export declare function map_andandfn_<Val, Out>(
|
|
21
17
|
...attr_a:readonly andand_key_T<Val>[]
|
|
22
18
|
):(a:readonly Val[])=>Out[]
|
|
23
19
|
export {
|
package/all/map_apply/index.d.ts
CHANGED
|
@@ -2,14 +2,11 @@ import type { map_fn_T } from '../map_fn/index.js'
|
|
|
2
2
|
/**
|
|
3
3
|
* Returns function that returns map of calls to fn_a applying in_arg_a with ...arg_a_
|
|
4
4
|
*/
|
|
5
|
-
export declare function map_apply_<
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export declare type map_apply_T<
|
|
10
|
-
Arg extends unknown = unknown,
|
|
11
|
-
O extends unknown = unknown,
|
|
12
|
-
> = (...fn_arg_a:Arg[])=>O[]
|
|
5
|
+
export declare function map_apply_<Arg, O>(
|
|
6
|
+
fn_a:map_fn_T[],
|
|
7
|
+
in_arg_a?:Arg[]
|
|
8
|
+
):(...fn_arg_a:Arg[])=>O[]
|
|
9
|
+
export declare type map_apply_T<Arg, O> = (...fn_arg_a:Arg[])=>O[]
|
|
13
10
|
export {
|
|
14
11
|
map_apply_ as map_fn_apply_fn,
|
|
15
12
|
map_apply_ as _map_apply,
|
package/all/map_call/index.d.ts
CHANGED
|
@@ -2,18 +2,15 @@ import type { map_fn_T } from '../map_fn/index.js'
|
|
|
2
2
|
/**
|
|
3
3
|
* Returns the map of calls to fn_a with ...arg_a.
|
|
4
4
|
*/
|
|
5
|
-
export declare function map_call<
|
|
6
|
-
I extends unknown = unknown,
|
|
7
|
-
O extends unknown = unknown
|
|
8
|
-
>(fn_a:map_fn_T<I, O>[], ...arg_a:I[]):O[]
|
|
5
|
+
export declare function map_call<I, O>(fn_a:map_fn_T<I, O>[], ...arg_a:I[]):O[]
|
|
9
6
|
export { map_call as call__map }
|
|
10
7
|
/**
|
|
11
8
|
* Returns function that maps calls to fn_al ...fac_arg_a concat with ...fn_arg_a passed to function
|
|
12
9
|
*/
|
|
13
|
-
export declare function map_call_<
|
|
14
|
-
I
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
export declare function map_call_<I, O>(
|
|
11
|
+
fn_a:map_fn_T<I, O>[],
|
|
12
|
+
...fac_arg_a:I[]
|
|
13
|
+
):(...fn_arg_a:I[])=>O[]
|
|
17
14
|
export {
|
|
18
15
|
map_call_ as map_a_call_fn,
|
|
19
16
|
map_call_ as map_a1_call_fn,
|
package/all/map_find/index.d.ts
CHANGED
|
@@ -2,17 +2,11 @@ import type { wrap_a_T2 } from '../wrap_a/index.js'
|
|
|
2
2
|
/**
|
|
3
3
|
* Returns first return value of `fn(a[idx], idx)` where `fn(a[idx], idx)` is truthy.
|
|
4
4
|
*/
|
|
5
|
-
export declare function map_find<
|
|
6
|
-
In extends unknown = unknown, Out extends unknown = In
|
|
7
|
-
>(
|
|
5
|
+
export declare function map_find<In, Out = In>(
|
|
8
6
|
a:wrap_a_T2<In>,
|
|
9
7
|
fn:(val:In, idx:number)=>Out
|
|
10
8
|
):Out|undefined
|
|
11
|
-
export declare function maybe_map_find<
|
|
12
|
-
In extends unknown = unknown,
|
|
13
|
-
Out extends unknown = In,
|
|
14
|
-
Or = null
|
|
15
|
-
>(
|
|
9
|
+
export declare function maybe_map_find<In, Out = In, Or = null>(
|
|
16
10
|
maybe_a:wrap_a_T2<In>,
|
|
17
11
|
fn:(val:In, idx:number)=>Out,
|
|
18
12
|
or?:Or
|
|
@@ -21,9 +15,7 @@ export { map_find as find__map, }
|
|
|
21
15
|
/**
|
|
22
16
|
* Returns function that returns value from [map_find](#map_find) with `fn` argument.
|
|
23
17
|
*/
|
|
24
|
-
export declare function map_find_<
|
|
25
|
-
In extends unknown = unknown, Out extends unknown = In
|
|
26
|
-
>(
|
|
18
|
+
export declare function map_find_<In, Out = In>(
|
|
27
19
|
fn:(val:In, idx:number)=>Out
|
|
28
20
|
):(a:wrap_a_T2<In>)=>Out|undefined
|
|
29
21
|
export {
|
package/all/map_fn/index.d.ts
CHANGED
package/all/map_obj/index.d.ts
CHANGED
|
@@ -2,25 +2,16 @@ import type { nullish } from '../nullish/index.js'
|
|
|
2
2
|
/**
|
|
3
3
|
* Maps values in `in_obj` to `fn`, returning object with values returned by `fn`.
|
|
4
4
|
*/
|
|
5
|
-
export declare function map_obj<
|
|
6
|
-
In extends unknown = unknown,
|
|
7
|
-
Out = In
|
|
8
|
-
>(
|
|
5
|
+
export declare function map_obj<In, Out = In>(
|
|
9
6
|
in_obj:Record<string, In>,
|
|
10
7
|
fn:map_obj_fn_T<In, Out>
|
|
11
8
|
):Record<string, Out|nullish>
|
|
12
|
-
export declare type map_obj_fn_T<
|
|
13
|
-
Val extends unknown = unknown,
|
|
14
|
-
Out = Val
|
|
15
|
-
> = (in_obj:Val, key:string)=>Out
|
|
9
|
+
export declare type map_obj_fn_T<Val, Out = Val> = (in_obj:Val, key:string)=>Out
|
|
16
10
|
export { map_obj as map__obj }
|
|
17
11
|
/**
|
|
18
12
|
* Returns function to map `obj` to `fn` returning object with values.
|
|
19
13
|
*/
|
|
20
|
-
export declare function map_obj_<
|
|
21
|
-
In extends unknown = unknown,
|
|
22
|
-
Out = In
|
|
23
|
-
>(
|
|
14
|
+
export declare function map_obj_<In, Out = In>(
|
|
24
15
|
fn:map_obj_fn_T<In, Out>
|
|
25
16
|
):(obj:Record<string, In>)=>Record<string, Out|nullish>
|
|
26
17
|
export {
|
|
@@ -3,10 +3,7 @@ import type { nullish } from '../nullish/index.js'
|
|
|
3
3
|
/**
|
|
4
4
|
* Map `values` `andand` `key_a` in `obj` to `fn`, returning object with values return by `fn`.
|
|
5
5
|
*/
|
|
6
|
-
export declare function map_obj_andand<
|
|
7
|
-
In extends unknown = unknown,
|
|
8
|
-
Out extends unknown = unknown
|
|
9
|
-
>(
|
|
6
|
+
export declare function map_obj_andand<In, Out>(
|
|
10
7
|
obj:Record<string, In>,
|
|
11
8
|
...key_a:andand_key_T<In>[]
|
|
12
9
|
):Record<string, Out|nullish>
|
|
@@ -15,10 +12,7 @@ export { map_obj_andand as map__obj__andand }
|
|
|
15
12
|
* Returns function to
|
|
16
13
|
* map `values` `andand` `key_a` in `obj` to `fn`, returning object with values return by `fn`.
|
|
17
14
|
*/
|
|
18
|
-
export declare function map_obj_andand_<
|
|
19
|
-
In extends unknown = unknown,
|
|
20
|
-
Out = In
|
|
21
|
-
>(
|
|
15
|
+
export declare function map_obj_andand_<In, Out = In>(
|
|
22
16
|
...key_a:andand_key_T<In>[]
|
|
23
17
|
):(obj:Record<string, In>)=>Record<string, Out|nullish>
|
|
24
18
|
export {
|
package/all/merge/index.d.ts
CHANGED
package/all/mixin/index.d.ts
CHANGED
package/all/neq/index.d.ts
CHANGED
|
@@ -2,13 +2,9 @@ import type { wrap_a_T } from '../wrap_a/index.js'
|
|
|
2
2
|
/**
|
|
3
3
|
* Returns `!=` operator to all values in `in_value_a`.
|
|
4
4
|
*/
|
|
5
|
-
export declare function neq<
|
|
6
|
-
I extends unknown = unknown
|
|
7
|
-
>(in_value_a:wrap_a_T<I>):boolean
|
|
5
|
+
export declare function neq<I>(in_value_a:wrap_a_T<I>):boolean
|
|
8
6
|
/**
|
|
9
7
|
* Return function that Returns `!=` operator to all values in `in_value_a`.
|
|
10
8
|
*/
|
|
11
|
-
export declare function neq_<
|
|
12
|
-
I extends unknown = unknown
|
|
13
|
-
>(in_value_a:I|I[]):(val:I)=>boolean
|
|
9
|
+
export declare function neq_<I>(in_value_a:I|I[]):(val:I)=>boolean
|
|
14
10
|
export { neq_ as _neq, }
|
package/all/neql/index.d.ts
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Returns `!==` operator to all values in `a_unwrap`.
|
|
3
3
|
*/
|
|
4
|
-
export declare function neql<
|
|
5
|
-
I extends unknown = unknown
|
|
6
|
-
>(a_unwrap:I):boolean
|
|
4
|
+
export declare function neql<I>(a_unwrap:I):boolean
|
|
7
5
|
/**
|
|
8
6
|
* Returns function that returns `!==` operator to all values in `in_value_a`.
|
|
9
7
|
* @param in_value_a
|
|
10
8
|
* @returns {function(*=): boolean}
|
|
11
9
|
*/
|
|
12
|
-
export declare function neql_<
|
|
13
|
-
Arg extends unknown = unknown
|
|
14
|
-
>(in_value_a:Arg[]):(value:Arg)=>boolean
|
|
10
|
+
export declare function neql_<Arg>(in_value_a:Arg[]):(value:Arg)=>boolean
|
|
15
11
|
export { neql_ as _neql, }
|
package/all/noinit/index.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
export declare function noinit_<
|
|
2
|
-
Arg
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export declare type noinit_T<
|
|
6
|
-
Arg extends unknown = unknown,
|
|
7
|
-
Ret extends unknown = unknown
|
|
8
|
-
> = (...args:Arg[])=>Ret|undefined
|
|
1
|
+
export declare function noinit_<Arg, Ret>(
|
|
2
|
+
fn:(...args:Arg[])=>Ret,
|
|
3
|
+
times?:number
|
|
4
|
+
):noinit_T<Arg, Ret>
|
|
5
|
+
export declare type noinit_T<Arg, Ret> = (...args:Arg[])=>Ret|undefined
|
|
9
6
|
export { noinit_ as _noinit, }
|