ctx-core 4.19.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.
Files changed (176) hide show
  1. package/all/a_in_idx_a_map/index.d.ts +1 -3
  2. package/all/a_item/index.d.ts +3 -9
  3. package/all/a_length/index.d.ts +4 -7
  4. package/all/a_nowrap/index.d.ts +2 -4
  5. package/all/a_present/index.d.ts +4 -7
  6. package/all/a_some/index.d.ts +1 -3
  7. package/all/and/index.d.ts +3 -9
  8. package/all/and_call/index.d.ts +4 -8
  9. package/all/andand/index.d.ts +4 -11
  10. package/all/andand_or/index.d.ts +6 -8
  11. package/all/andandfn/index.d.ts +3 -12
  12. package/all/apply/index.d.ts +2 -2
  13. package/all/arg_i0_a/index.d.ts +1 -1
  14. package/all/array_types/index.d.ts +21 -28
  15. package/all/assign_fn_key_a/index.d.ts +1 -3
  16. package/all/be/index.d.ts +5 -3
  17. package/all/be_/index.d.ts +69 -48
  18. package/all/be_/index.js +39 -76
  19. package/all/be_/index.test.ts +244 -121
  20. package/all/be_lock_memosig_triple/index.d.ts +16 -22
  21. package/all/be_lock_memosig_triple/index.test.ts +47 -36
  22. package/all/be_memo_pair/index.d.ts +14 -11
  23. package/all/be_memo_pair/index.js +1 -2
  24. package/all/be_memo_pair/index.test.ts +47 -31
  25. package/all/be_memosig_triple/index.d.ts +16 -22
  26. package/all/be_memosig_triple/index.test.ts +48 -34
  27. package/all/be_sig_triple/index.d.ts +16 -13
  28. package/all/be_sig_triple/index.js +2 -3
  29. package/all/be_sig_triple/index.test.ts +42 -29
  30. package/all/bind_apply/index.d.ts +3 -3
  31. package/all/bind_call/index.d.ts +10 -11
  32. package/all/bind_map_apply/index.d.ts +2 -2
  33. package/all/bind_map_call/index.d.ts +2 -2
  34. package/all/call/index.d.ts +3 -3
  35. package/all/call_assign/index.d.ts +2 -6
  36. package/all/call_fn_a/index.d.ts +4 -3
  37. package/all/call_or_fn/index.d.ts +1 -4
  38. package/all/chain/index.d.ts +4 -8
  39. package/all/chunk_aa/index.d.ts +3 -5
  40. package/all/clear_ctx/index.d.ts +1 -3
  41. package/all/combinators/index.d.ts +12 -49
  42. package/all/compact/index.d.ts +4 -7
  43. package/all/compact_a_ctx/index.d.ts +1 -3
  44. package/all/compare/index.d.ts +1 -3
  45. package/all/compose/index.d.ts +3 -3
  46. package/all/concat/index.d.ts +2 -6
  47. package/all/concat_truthy_a/index.d.ts +3 -4
  48. package/all/ctx/index.d.ts +18 -2
  49. package/all/ctx/index.js +20 -8
  50. package/all/ctx/index.test.ts +33 -7
  51. package/all/curry/index.d.ts +5 -7
  52. package/all/curry/index.js +6 -3
  53. package/all/debounce/index.d.ts +12 -12
  54. package/all/difference_a/index.d.ts +1 -3
  55. package/all/difference_by/index.d.ts +3 -4
  56. package/all/difference_set/index.d.ts +1 -5
  57. package/all/each/index.d.ts +5 -9
  58. package/all/ensure/index.d.ts +1 -3
  59. package/all/ensure__refresh/index.d.ts +1 -3
  60. package/all/eq/index.d.ts +4 -10
  61. package/all/eql/index.d.ts +3 -9
  62. package/all/eql_a/index.d.ts +1 -3
  63. package/all/eql_fn_a/index.d.ts +1 -3
  64. package/all/every/index.d.ts +3 -9
  65. package/all/exclude/index.d.ts +1 -4
  66. package/all/falsy_async_guard/index.d.ts +3 -4
  67. package/all/falsy_guard/index.d.ts +4 -3
  68. package/all/fetch__template_pair/index.test.ts +5 -5
  69. package/all/filter/index.d.ts +4 -12
  70. package/all/find/index.d.ts +6 -10
  71. package/all/first/index.d.ts +2 -7
  72. package/all/flatten/index.d.ts +2 -6
  73. package/all/flip/index.d.ts +3 -3
  74. package/all/hasOwnProperty_pick/index.d.ts +4 -4
  75. package/all/head_arg_a/index.d.ts +4 -3
  76. package/all/idx/index.d.ts +1 -3
  77. package/all/idx_reject/index.d.ts +3 -9
  78. package/all/idx_sort_a/index.d.ts +1 -3
  79. package/all/idx_sort_a__sort_idx_o/index.d.ts +1 -3
  80. package/all/idx_sort_r_a/index.d.ts +1 -3
  81. package/all/if_null_set_false/index.d.ts +1 -3
  82. package/all/ifelse/index.d.ts +5 -3
  83. package/all/iife/index.d.ts +3 -3
  84. package/all/index.d.ts +1 -0
  85. package/all/index.js +1 -0
  86. package/all/intersection_a/index.d.ts +5 -6
  87. package/all/intersection_by/index.d.ts +3 -4
  88. package/all/intersection_set/index.d.ts +1 -3
  89. package/all/isArray/index.d.ts +2 -2
  90. package/all/last/index.d.ts +2 -7
  91. package/all/left_and/index.d.ts +1 -3
  92. package/all/left_or/index.d.ts +1 -3
  93. package/all/many_andand/index.d.ts +7 -6
  94. package/all/many_andand_or/index.d.ts +2 -8
  95. package/all/map/index.d.ts +4 -18
  96. package/all/map_andand/index.d.ts +3 -9
  97. package/all/map_andand_or/index.d.ts +1 -3
  98. package/all/map_andandfn/index.d.ts +2 -6
  99. package/all/map_apply/index.d.ts +5 -8
  100. package/all/map_apply/index.js +1 -1
  101. package/all/map_call/index.d.ts +5 -8
  102. package/all/map_find/index.d.ts +3 -11
  103. package/all/map_fn/index.d.ts +1 -4
  104. package/all/map_obj/index.d.ts +3 -12
  105. package/all/map_obj_andand/index.d.ts +2 -8
  106. package/all/merge/index.d.ts +1 -4
  107. package/all/mixin/index.d.ts +1 -4
  108. package/all/neq/index.d.ts +2 -6
  109. package/all/neql/index.d.ts +2 -6
  110. package/all/noinit/index.d.ts +5 -8
  111. package/all/not/index.d.ts +3 -9
  112. package/all/notnot/index.d.ts +2 -4
  113. package/all/nullish__guard/index.d.ts +3 -4
  114. package/all/nullish__guard__async/index.d.ts +3 -4
  115. package/all/nullish__none/index.d.ts +1 -3
  116. package/all/o_a_present/index.d.ts +2 -6
  117. package/all/o_some/index.d.ts +1 -3
  118. package/all/offset_destructure_aa/index.d.ts +1 -3
  119. package/all/offset_i_slice/index.d.ts +2 -6
  120. package/all/one_andand/index.d.ts +3 -3
  121. package/all/one_andand_or/index.d.ts +3 -5
  122. package/all/or/index.d.ts +6 -17
  123. package/all/or_property/index.d.ts +1 -5
  124. package/all/promise_timeout/index.d.ts +4 -4
  125. package/all/prototype_mixin/index.d.ts +4 -3
  126. package/all/prototype_mixin/index.js +3 -3
  127. package/all/push/index.d.ts +2 -6
  128. package/all/r_val_a/index.d.ts +2 -6
  129. package/all/rank/index.d.ts +3 -4
  130. package/all/reduce/index.d.ts +10 -23
  131. package/all/reject/index.d.ts +7 -14
  132. package/all/remove/index.d.ts +2 -6
  133. package/all/remove_idx/index.d.ts +4 -4
  134. package/all/resolver_curry/index.d.ts +2 -2
  135. package/all/reverse/index.d.ts +2 -10
  136. package/all/right_and/index.d.ts +1 -3
  137. package/all/right_or/index.d.ts +1 -3
  138. package/all/rmemo/index.js +3 -3
  139. package/all/rmemo__wait/index.test.ts +1 -1
  140. package/all/run/index.d.ts +1 -4
  141. package/all/selector_splice/index.d.ts +1 -3
  142. package/all/slice/index.d.ts +5 -15
  143. package/all/slice_arg_a/index.d.ts +3 -12
  144. package/all/slice_arg_spread_a/index.d.ts +3 -11
  145. package/all/sort/index.d.ts +4 -14
  146. package/all/sort_a/index.d.ts +2 -6
  147. package/all/sort_idx_a/index.d.ts +2 -6
  148. package/all/sort_idx_o/index.d.ts +2 -6
  149. package/all/sort_val_a/index.d.ts +2 -6
  150. package/all/sort_val_a__transition_idx_a/index.d.ts +4 -12
  151. package/all/sort_val_a__transition_idx_a/index.js +4 -2
  152. package/all/sparse_a/index.d.ts +1 -3
  153. package/all/splice/index.d.ts +2 -6
  154. package/all/spread/index.d.ts +2 -6
  155. package/all/tap/index.d.ts +1 -3
  156. package/all/test/index.d.ts +12 -0
  157. package/all/test/index.js +1 -0
  158. package/all/throttle/index.d.ts +2 -2
  159. package/all/throttle/index.js +8 -7
  160. package/all/tick/index.d.ts +1 -5
  161. package/all/timeout_promise/index.d.ts +1 -5
  162. package/all/times/index.d.ts +1 -5
  163. package/all/tup/index.d.ts +22 -6
  164. package/all/union_a/index.d.ts +1 -3
  165. package/all/union_set/index.d.ts +1 -5
  166. package/all/val/index.d.ts +1 -3
  167. package/all/value_r/index.d.ts +2 -6
  168. package/all/weak_r/index.d.ts +3 -3
  169. package/all/wrap_a/index.d.ts +6 -14
  170. package/all/wrap_a_item/index.d.ts +5 -4
  171. package/all/wrap_aa/index.d.ts +3 -9
  172. package/all/wrap_aa_item/index.d.ts +5 -4
  173. package/all/wrap_concat/index.d.ts +1 -5
  174. package/package.json +33 -10
  175. package/test/index.d.ts +1 -0
  176. package/test/index.js +1 -0
@@ -1,11 +1,12 @@
1
1
  import type { andand_key__T } from '../andand/index.js'
2
- export declare function many_andand_<
3
- Val extends unknown = unknown
4
- >(...name_a:(keyof Val|andand_key__T<Val>)[]):many_andand_T<Val>
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 extends unknown = unknown
11
- > = (obj:Val, ...arg_a:(keyof Val|andand_key__T<Val>)[])=>Val|null
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,
@@ -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 {
@@ -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
- Arg extends unknown = unknown,
7
- O extends unknown = unknown,
8
- >(fn_a:map_fn_T[], in_arg_a?:Arg[]):(...fn_arg_a:Arg[])=>O[]
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<Arg, O>[],
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,
@@ -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((fn)=>fn(...concat(in_arg_a, fn_arg_a)))
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,
@@ -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 extends unknown = unknown,
15
- O extends unknown = unknown
16
- >(fn_a:map_fn_T<I, O>[], ...fac_arg_a:I[]):(...fn_arg_a:I[])=>O[]
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,
@@ -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 {
@@ -1,4 +1 @@
1
- export declare type map_fn_T<
2
- I extends unknown = unknown,
3
- Ret extends unknown = unknown
4
- > = (...arg_a:I[])=>Ret
1
+ export declare type map_fn_T<I, Ret> = (...arg_a:I[])=>Ret
@@ -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 {
@@ -1,7 +1,4 @@
1
1
  /**
2
2
  * Performs a deep merge on the target with each source_a
3
3
  */
4
- export declare function merge<
5
- I extends unknown = unknown,
6
- O = I
7
- >(target:I, ...source_a:O[]):I|undefined
4
+ export declare function merge<I, O = I>(target:I, ...source_a:O[]):I|undefined
@@ -7,7 +7,4 @@
7
7
  * }
8
8
  * })
9
9
  */
10
- export declare function mixin<
11
- I extends unknown = unknown,
12
- O = I
13
- >(target:I, ...source_a:O[]):I
10
+ export declare function mixin<I, O = I>(target:I, ...source_a:O[]):I
@@ -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, }
@@ -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, }
@@ -1,9 +1,6 @@
1
- export declare function noinit_<
2
- Arg extends unknown = unknown,
3
- Ret extends unknown = unknown
4
- >(fn:(...args:Arg[])=>Ret, times?:number):noinit_T<Arg, Ret>
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, }
@@ -2,16 +2,10 @@ import type { a_nowrap_T } from '../a_nowrap/index.js'
2
2
  /**
3
3
  * Returns not applied to the spread of `in_value_a`
4
4
  */
5
- export declare function not<
6
- I extends unknown = unknown
7
- >(in_value_a:a_nowrap_T<I>):boolean
5
+ export declare function not<I>(in_value_a:a_nowrap_T<I>):boolean
8
6
  /**
9
7
  * Returns function that calls [not](#not) with [wrap_concat](#wrap_concat) of the arguments.
10
8
  */
11
- export declare function not_<
12
- I extends unknown = unknown
13
- >(a_unwrap:a_nowrap_T<I>):not_T<I>
14
- export declare type not_T<
15
- I extends unknown = unknown
16
- > = (val_a:I[])=>boolean
9
+ export declare function not_<I>(a_unwrap:a_nowrap_T<I>):not_T<I>
10
+ export declare type not_T<I> = (val_a:I[])=>boolean
17
11
  export { not_ as _not, }
@@ -5,8 +5,6 @@ export declare function notnot<I>(in_value_a:I|I[]):boolean
5
5
  /**
6
6
  * Returns function that calls [notnot](#notnot) with [wrap_concat](#wrap_concat) of the arguments.
7
7
  */
8
- export declare function notnot_<
9
- Val extends unknown = unknown
10
- >(in_value_a:Val|Val[]):(val:Val)=>boolean
11
- export declare type notnot_T<Val extends unknown = unknown> = (val:Val)=>boolean
8
+ export declare function notnot_<Val>(in_value_a:Val|Val[]):(val:Val)=>boolean
9
+ export declare type notnot_T<Val> = (val:Val)=>boolean
12
10
  export { notnot_ as _notnot, }
@@ -1,8 +1,7 @@
1
1
  import type { nullish } from '../nullish/index.js'
2
- export declare function nullish__guard<
3
- Val extends unknown = unknown
4
- >(
5
- label:string, ...fn_a:(()=>(nullish|Val))[]
2
+ export declare function nullish__guard<Val>(
3
+ label:string,
4
+ ...fn_a:(()=>(nullish|Val))[]
6
5
  ):Val|nullish
7
6
  export {
8
7
  nullish__guard as nullish_guard,
@@ -1,8 +1,7 @@
1
1
  import type { nullish } from '../nullish/index.js'
2
- export declare function nullish__guard__async<
3
- Val extends unknown = unknown
4
- >(
5
- label:string, ...fn_a:(()=>Promise<nullish|Val>)[]
2
+ export declare function nullish__guard__async<Val>(
3
+ label:string,
4
+ ...fn_a:(()=>Promise<nullish|Val>)[]
6
5
  ):Promise<Val>
7
6
  export {
8
7
  nullish__guard__async as nullish_async_guard,
@@ -1,8 +1,6 @@
1
1
  import type { nullish } from '../nullish/index.js'
2
2
  import type { TupleExclude } from '../tup/index.js'
3
- export function nullish__none_<
4
- T extends unknown[], U
5
- >(
3
+ export function nullish__none_<T extends unknown[], U>(
6
4
  $:T,
7
5
  _:(...$:TupleExclude<T, nullish>)=>U,
8
6
  onnullish?:(nullish:nullish)=>unknown
@@ -4,12 +4,8 @@ import type { filter_o_T } from '../filter_o/index.js'
4
4
  * boolean of whether the array has items present
5
5
  */
6
6
  export declare function o_a_present<
7
- Val extends unknown = unknown,
8
- Obj extends {
9
- [key:string]:Val[];
10
- } = {
11
- [key:string]:Val[];
12
- }
7
+ Val,
8
+ Obj extends { [key:string]:Val[] } = { [key:string]:Val[] }
13
9
  >(o:Obj):filter_o_T|undefined
14
10
  export {
15
11
  o_a_present as r_a_present,
@@ -5,9 +5,7 @@ import type { maybe } from '../maybe/index.js'
5
5
  * some({foo: 9, bar: 10}, (value, key) => value === 10) // returns true
6
6
  * some({baz: 11, quux: 12}, (value, key) => value === 10) // returns false
7
7
  */
8
- export declare function o_some<
9
- I extends unknown = unknown
10
- >(
8
+ export declare function o_some<I>(
11
9
  obj:Record<string, I>,
12
10
  compare_some:(obj:I, key:string)=>unknown
13
11
  ):maybe<boolean>
@@ -1,9 +1,7 @@
1
1
  /**
2
2
  * Returns 2d Array where `source_a` is destructured into subarray of length `offset`.
3
3
  */
4
- export declare function offset_destructure_aa_<
5
- I extends unknown = unknown
6
- >(
4
+ export declare function offset_destructure_aa_<I>(
7
5
  source_a:readonly I[], offset?:number
8
6
  ):I[][]
9
7
  export {
@@ -1,16 +1,12 @@
1
1
  /**
2
2
  * Returns an Array from slicing an array from an array's offset from position i
3
3
  */
4
- export declare function offset_i_slice<
5
- I extends unknown = unknown
6
- >(
4
+ export declare function offset_i_slice<I>(
7
5
  a:readonly I[],
8
6
  i:number,
9
7
  offset?:number
10
8
  ):I[]
11
- export declare function maybe_offset_i_slice<
12
- I extends unknown = unknown, Or = null
13
- >(
9
+ export declare function maybe_offset_i_slice<I, Or = null>(
14
10
  maybe_a:readonly I[]|undefined,
15
11
  i:number,
16
12
  offset?:number,
@@ -2,9 +2,9 @@ import type { andand_key_T } from '../andand/index.js'
2
2
  /**
3
3
  * Returns a function that calls `andand(obj, ...name_a)`
4
4
  */
5
- export declare function one_andand_<
6
- Val extends unknown = unknown, Out extends unknown = unknown
7
- >(...name_a:andand_key_T<Val>[]):(obj:Val)=>Out|null
5
+ export declare function one_andand_<Val, Out>(
6
+ ...name_a:andand_key_T<Val>[]
7
+ ):(obj:Val)=>Out|null
8
8
  export {
9
9
  one_andand_ as andand_,
10
10
  one_andand_ as _one_andand,
@@ -3,11 +3,9 @@ import type { andand_or_T } from '../andand_or/index.js'
3
3
  /**
4
4
  * Returns function that calls `andand_or(obj, name_a, or_fn)`
5
5
  */
6
- export declare function one_andand_or_<
7
- In extends unknown = unknown,
8
- Out extends unknown = unknown
9
- >(
10
- name_a:andand_key_T<In>[], or_:andand_or_T<In, Out>
6
+ export declare function one_andand_or_<In, Out>(
7
+ name_a:andand_key_T<In>[],
8
+ or_:andand_or_T<In, Out>
11
9
  ):(obj:In)=>Out
12
10
  export {
13
11
  one_andand_or_ as andand_or_,
package/all/or/index.d.ts CHANGED
@@ -3,37 +3,26 @@ import type { wrap_a_T } from '../wrap_a/index.js'
3
3
  /**
4
4
  * Returns first truthy or last item in `a_unwrap`.
5
5
  */
6
- export declare function or<
7
- Val extends unknown = unknown
8
- >(
6
+ export declare function or<Val>(
9
7
  a_unwrap:Val|wrap_a_T<Val>
10
8
  ):Val|undefined
11
9
  /**
12
10
  * Returns first truthy or last item call or value in `a_unwrap`.
13
11
  */
14
- export declare function or_<
15
- Val extends unknown,
16
- Ret extends unknown
17
- >(a_unwrap:a_nowrap_T<Val>):or_T<Val, Ret>
18
- export interface or_fn_callable_T<I extends unknown = unknown> {
12
+ export declare function or_<Val, Ret>(a_unwrap:a_nowrap_T<Val>):or_T<Val, Ret>
13
+ export interface or_fn_callable_T<I> {
19
14
  (...args:wrap_a_T<I>):I
20
15
  }
21
- export declare type or_T<Val extends unknown, Ret extends unknown> =
16
+ export declare type or_T<Val, Ret> =
22
17
  (Val extends or_fn_callable_T<Val> ? Ret : Val)
23
18
  |undefined
24
19
  /**
25
20
  * Returns function that returns first truthy or last item call or value in `a_unwrap`.
26
21
  */
27
- export declare function or_fn_<
28
- Val extends unknown,
29
- Ret extends unknown
30
- >(
22
+ export declare function or_fn_<Val, Ret>(
31
23
  a_unwrap:a_nowrap_T<Val>
32
24
  ):(val:Val)=>or_T<Val, Ret>
33
- export declare type or_fn_T<
34
- Val extends unknown,
35
- Ret extends unknown
36
- > = (val:Val)=>or_T<Val, Ret>
25
+ export declare type or_fn_T<Val, Ret> = (val:Val)=>or_T<Val, Ret>
37
26
  export {
38
27
  or_ as on__fn,
39
28
  or_fn_ as _or__fn,
@@ -1,9 +1,5 @@
1
1
  /**
2
2
  * Returns first obj property that is truthy
3
3
  */
4
- export declare function or_property<
5
- I extends unknown = unknown
6
- >(
7
- obj:I, name_a:string[]
8
- ):I[keyof I]|undefined
4
+ export declare function or_property<I>(obj:I, name_a:string[]):I[keyof I]|undefined
9
5
  export { or_property as or__property }
@@ -1,5 +1,5 @@
1
- export declare function promise_timeout<
2
- O extends unknown = unknown
3
- >(
4
- promise:(()=>Promise<O>)|Promise<O>, ms:number, error?:Error
1
+ export declare function promise_timeout<O>(
2
+ promise:(()=>Promise<O>)|Promise<O>,
3
+ ms:number,
4
+ error?:Error
5
5
  ):Promise<O>
@@ -1,7 +1,8 @@
1
1
  export declare function prototype_mixin<
2
- target_T extends Function&{ prototype:object },
3
- source_T extends Function&{ prototype:object },
4
- out_T extends Function&{ prototype:object } = target_T&{ prototype:target_T['prototype']&source_T['prototype'] },
2
+ target_T extends { prototype:object },
3
+ source_T extends { prototype:object },
4
+ out_T extends { prototype:object } =
5
+ target_T&{ prototype:target_T['prototype']&source_T['prototype'] },
5
6
  >(
6
7
  target:target_T,
7
8
  source:source_T
@@ -1,7 +1,7 @@
1
1
  /**
2
- * @param {Function&{ prototype:object }}target
3
- * @param {Function&{ prototype:object }}source
4
- * @returns {Function&{ prototype:object }}
2
+ * @param {{ prototype:object }}target
3
+ * @param {{ prototype:object }}source
4
+ * @returns {{ prototype:object }}
5
5
  */
6
6
  export function prototype_mixin(target, source) {
7
7
  const target_prototype = target.prototype
@@ -1,15 +1,11 @@
1
1
  /**
2
2
  * Calls push on an array
3
3
  */
4
- export declare function push<
5
- I extends unknown = unknown
6
- >(
4
+ export declare function push<I>(
7
5
  a:readonly I[],
8
6
  ...arg_a:readonly I[]
9
7
  ):number
10
- export declare function maybe_push<
11
- I extends unknown = unknown
12
- >(
8
+ export declare function maybe_push<I>(
13
9
  maybe_a:readonly I[]|undefined,
14
10
  ...arg_a:readonly I[]
15
11
  ):number|undefined
@@ -1,15 +1,11 @@
1
1
  /**
2
2
  * Returns Array of `obj[key_a[]]`.
3
3
  */
4
- export declare function r_val_a_<
5
- Val extends unknown = unknown
6
- >(
4
+ export declare function r_val_a_<Val>(
7
5
  obj:Record<string, Val>,
8
6
  key_a?:readonly string[]
9
7
  ):Val[]
10
- export declare function maybe_r_val_a_<
11
- Val extends unknown = unknown, Or = null
12
- >(
8
+ export declare function maybe_r_val_a_<Val, Or = null>(
13
9
  obj:Record<string, Val>|undefined,
14
10
  key_a?:readonly string[],
15
11
  or?:Or