@daiso-tech/core 0.29.0 → 0.31.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.
Files changed (246) hide show
  1. package/dist/async/utilities/abort/abort.d.ts +1 -1
  2. package/dist/async/utilities/lazy-promise/lazy-promise.d.ts +4 -5
  3. package/dist/async/utilities/lazy-promise/lazy-promise.js +3 -3
  4. package/dist/async/utilities/lazy-promise/lazy-promise.js.map +1 -1
  5. package/dist/async/utilities/retry/retry.d.ts +1 -1
  6. package/dist/async/utilities/timeout/timeout.d.ts +1 -1
  7. package/dist/cache/contracts/cache-factory.contract.js +1 -1
  8. package/dist/cache/contracts/cache-factory.contract.js.map +1 -1
  9. package/dist/cache/contracts/cache.contract.d.ts +3 -3
  10. package/dist/cache/implementations/derivables/cache/cache.d.ts +14 -14
  11. package/dist/cache/implementations/derivables/cache/cache.js +3 -3
  12. package/dist/cache/implementations/derivables/cache/cache.js.map +1 -1
  13. package/dist/cache/implementations/derivables/cache/is-database-cache-adapter.js.map +1 -1
  14. package/dist/collection/contracts/_module-exports.d.ts +1 -1
  15. package/dist/collection/contracts/_module-exports.js +1 -1
  16. package/dist/collection/contracts/_module-exports.js.map +1 -1
  17. package/dist/collection/contracts/_shared/_module.d.ts +11 -0
  18. package/dist/collection/contracts/_shared/_module.js +12 -0
  19. package/dist/collection/contracts/_shared/_module.js.map +1 -0
  20. package/dist/collection/contracts/_shared/compartor.type.d.ts +9 -0
  21. package/dist/collection/contracts/_shared/compartor.type.js +5 -0
  22. package/dist/collection/contracts/_shared/compartor.type.js.map +1 -0
  23. package/dist/collection/contracts/_shared/cross-join-result.type.d.ts +11 -0
  24. package/dist/collection/contracts/_shared/cross-join-result.type.js +5 -0
  25. package/dist/collection/contracts/_shared/cross-join-result.type.js.map +1 -0
  26. package/dist/collection/contracts/_shared/ensure-map.type.d.ts +8 -0
  27. package/dist/collection/contracts/_shared/ensure-map.type.js +5 -0
  28. package/dist/collection/contracts/_shared/ensure-map.type.js.map +1 -0
  29. package/dist/collection/contracts/_shared/ensure-record.type.d.ts +8 -0
  30. package/dist/collection/contracts/_shared/ensure-record.type.js +5 -0
  31. package/dist/collection/contracts/_shared/ensure-record.type.js.map +1 -0
  32. package/dist/collection/contracts/_shared/foreach.type.d.ts +22 -0
  33. package/dist/collection/contracts/_shared/foreach.type.js +5 -0
  34. package/dist/collection/contracts/_shared/foreach.type.js.map +1 -0
  35. package/dist/collection/contracts/_shared/map.type.d.ts +22 -0
  36. package/dist/collection/contracts/{_shared.js → _shared/map.type.js} +1 -1
  37. package/dist/collection/contracts/_shared/map.type.js.map +1 -0
  38. package/dist/collection/contracts/_shared/modifier.type.d.ts +18 -0
  39. package/dist/collection/contracts/_shared/modifier.type.js +5 -0
  40. package/dist/collection/contracts/_shared/modifier.type.js.map +1 -0
  41. package/dist/collection/contracts/_shared/predicate.type.d.ts +49 -0
  42. package/dist/collection/contracts/_shared/predicate.type.js +5 -0
  43. package/dist/collection/contracts/_shared/predicate.type.js.map +1 -0
  44. package/dist/collection/contracts/_shared/reduce.type.d.ts +24 -0
  45. package/dist/collection/contracts/_shared/reduce.type.js +5 -0
  46. package/dist/collection/contracts/_shared/reduce.type.js.map +1 -0
  47. package/dist/collection/contracts/_shared/tap.type.d.ts +16 -0
  48. package/dist/collection/contracts/_shared/tap.type.js +5 -0
  49. package/dist/collection/contracts/_shared/tap.type.js.map +1 -0
  50. package/dist/collection/contracts/_shared/transform.type.d.ts +16 -0
  51. package/dist/collection/contracts/_shared/transform.type.js +5 -0
  52. package/dist/collection/contracts/_shared/transform.type.js.map +1 -0
  53. package/dist/collection/contracts/async-collection.contract.d.ts +3 -3
  54. package/dist/collection/contracts/collection.contract.d.ts +31 -31
  55. package/dist/collection/contracts/collection.errors.d.ts +1 -1
  56. package/dist/collection/contracts/collection.errors.js +1 -1
  57. package/dist/collection/implementations/async-iterable-collection/_shared/async-chunk-while-iterable.js +2 -2
  58. package/dist/collection/implementations/async-iterable-collection/_shared/async-chunk-while-iterable.js.map +1 -1
  59. package/dist/collection/implementations/async-iterable-collection/_shared/async-count-by-iterable.js +2 -1
  60. package/dist/collection/implementations/async-iterable-collection/_shared/async-count-by-iterable.js.map +1 -1
  61. package/dist/collection/implementations/async-iterable-collection/_shared/async-filter-iterable.js +2 -1
  62. package/dist/collection/implementations/async-iterable-collection/_shared/async-filter-iterable.js.map +1 -1
  63. package/dist/collection/implementations/async-iterable-collection/_shared/async-flat-map-iterable.js +2 -1
  64. package/dist/collection/implementations/async-iterable-collection/_shared/async-flat-map-iterable.js.map +1 -1
  65. package/dist/collection/implementations/async-iterable-collection/_shared/async-group-by-iterable.js +2 -2
  66. package/dist/collection/implementations/async-iterable-collection/_shared/async-group-by-iterable.js.map +1 -1
  67. package/dist/collection/implementations/async-iterable-collection/_shared/async-insert-after-iterable.js +2 -2
  68. package/dist/collection/implementations/async-iterable-collection/_shared/async-insert-after-iterable.js.map +1 -1
  69. package/dist/collection/implementations/async-iterable-collection/_shared/async-insert-before-iterable.js +2 -2
  70. package/dist/collection/implementations/async-iterable-collection/_shared/async-insert-before-iterable.js.map +1 -1
  71. package/dist/collection/implementations/async-iterable-collection/_shared/async-map-iterable.js +2 -1
  72. package/dist/collection/implementations/async-iterable-collection/_shared/async-map-iterable.js.map +1 -1
  73. package/dist/collection/implementations/async-iterable-collection/_shared/async-partion-iterable.js +2 -2
  74. package/dist/collection/implementations/async-iterable-collection/_shared/async-partion-iterable.js.map +1 -1
  75. package/dist/collection/implementations/async-iterable-collection/_shared/async-skip-until-iterable.js +2 -1
  76. package/dist/collection/implementations/async-iterable-collection/_shared/async-skip-until-iterable.js.map +1 -1
  77. package/dist/collection/implementations/async-iterable-collection/_shared/async-sort-iterable.js +6 -1
  78. package/dist/collection/implementations/async-iterable-collection/_shared/async-sort-iterable.js.map +1 -1
  79. package/dist/collection/implementations/async-iterable-collection/_shared/async-take-until-iterable.js +2 -1
  80. package/dist/collection/implementations/async-iterable-collection/_shared/async-take-until-iterable.js.map +1 -1
  81. package/dist/collection/implementations/async-iterable-collection/_shared/async-tap-iterable.js +2 -1
  82. package/dist/collection/implementations/async-iterable-collection/_shared/async-tap-iterable.js.map +1 -1
  83. package/dist/collection/implementations/async-iterable-collection/_shared/async-unique-iterable.js +2 -1
  84. package/dist/collection/implementations/async-iterable-collection/_shared/async-unique-iterable.js.map +1 -1
  85. package/dist/collection/implementations/async-iterable-collection/_shared/async-update-iterable.js +3 -2
  86. package/dist/collection/implementations/async-iterable-collection/_shared/async-update-iterable.js.map +1 -1
  87. package/dist/collection/implementations/async-iterable-collection/_shared/async-when-iterable.js +2 -1
  88. package/dist/collection/implementations/async-iterable-collection/_shared/async-when-iterable.js.map +1 -1
  89. package/dist/collection/implementations/async-iterable-collection/async-iterable-collection.d.ts +3 -3
  90. package/dist/collection/implementations/async-iterable-collection/async-iterable-collection.js +25 -24
  91. package/dist/collection/implementations/async-iterable-collection/async-iterable-collection.js.map +1 -1
  92. package/dist/collection/implementations/iterable-collection/_shared/chunk-while-iterable.d.ts +2 -2
  93. package/dist/collection/implementations/iterable-collection/_shared/chunk-while-iterable.js +2 -1
  94. package/dist/collection/implementations/iterable-collection/_shared/chunk-while-iterable.js.map +1 -1
  95. package/dist/collection/implementations/iterable-collection/_shared/count-by-iterable.js +2 -1
  96. package/dist/collection/implementations/iterable-collection/_shared/count-by-iterable.js.map +1 -1
  97. package/dist/collection/implementations/iterable-collection/_shared/filter-iterable.d.ts +2 -2
  98. package/dist/collection/implementations/iterable-collection/_shared/filter-iterable.js +2 -1
  99. package/dist/collection/implementations/iterable-collection/_shared/filter-iterable.js.map +1 -1
  100. package/dist/collection/implementations/iterable-collection/_shared/flat-map-iterable.js +2 -1
  101. package/dist/collection/implementations/iterable-collection/_shared/flat-map-iterable.js.map +1 -1
  102. package/dist/collection/implementations/iterable-collection/_shared/group-by-iterable.js +2 -1
  103. package/dist/collection/implementations/iterable-collection/_shared/group-by-iterable.js.map +1 -1
  104. package/dist/collection/implementations/iterable-collection/_shared/insert-after-iterable.d.ts +2 -2
  105. package/dist/collection/implementations/iterable-collection/_shared/insert-after-iterable.js +3 -1
  106. package/dist/collection/implementations/iterable-collection/_shared/insert-after-iterable.js.map +1 -1
  107. package/dist/collection/implementations/iterable-collection/_shared/insert-before-iterable.d.ts +2 -2
  108. package/dist/collection/implementations/iterable-collection/_shared/insert-before-iterable.js +3 -1
  109. package/dist/collection/implementations/iterable-collection/_shared/insert-before-iterable.js.map +1 -1
  110. package/dist/collection/implementations/iterable-collection/_shared/map-iterable.js +2 -1
  111. package/dist/collection/implementations/iterable-collection/_shared/map-iterable.js.map +1 -1
  112. package/dist/collection/implementations/iterable-collection/_shared/partion-iterable.d.ts +2 -2
  113. package/dist/collection/implementations/iterable-collection/_shared/partion-iterable.js +2 -1
  114. package/dist/collection/implementations/iterable-collection/_shared/partion-iterable.js.map +1 -1
  115. package/dist/collection/implementations/iterable-collection/_shared/skip-until-iterable.d.ts +2 -2
  116. package/dist/collection/implementations/iterable-collection/_shared/skip-until-iterable.js +2 -1
  117. package/dist/collection/implementations/iterable-collection/_shared/skip-until-iterable.js.map +1 -1
  118. package/dist/collection/implementations/iterable-collection/_shared/sort-iterable.js +6 -1
  119. package/dist/collection/implementations/iterable-collection/_shared/sort-iterable.js.map +1 -1
  120. package/dist/collection/implementations/iterable-collection/_shared/take-until-iterable.d.ts +2 -2
  121. package/dist/collection/implementations/iterable-collection/_shared/take-until-iterable.js +2 -1
  122. package/dist/collection/implementations/iterable-collection/_shared/take-until-iterable.js.map +1 -1
  123. package/dist/collection/implementations/iterable-collection/_shared/tap-iterable.js +2 -1
  124. package/dist/collection/implementations/iterable-collection/_shared/tap-iterable.js.map +1 -1
  125. package/dist/collection/implementations/iterable-collection/_shared/unique-iterable.js +2 -1
  126. package/dist/collection/implementations/iterable-collection/_shared/unique-iterable.js.map +1 -1
  127. package/dist/collection/implementations/iterable-collection/_shared/update-iterable.d.ts +2 -2
  128. package/dist/collection/implementations/iterable-collection/_shared/update-iterable.js +3 -2
  129. package/dist/collection/implementations/iterable-collection/_shared/update-iterable.js.map +1 -1
  130. package/dist/collection/implementations/iterable-collection/_shared/when-iterable.js +2 -1
  131. package/dist/collection/implementations/iterable-collection/_shared/when-iterable.js.map +1 -1
  132. package/dist/collection/implementations/iterable-collection/iterable-collection.d.ts +31 -31
  133. package/dist/collection/implementations/iterable-collection/iterable-collection.js +23 -22
  134. package/dist/collection/implementations/iterable-collection/iterable-collection.js.map +1 -1
  135. package/dist/collection/implementations/list-collection/list-collection.d.ts +31 -31
  136. package/dist/collection/implementations/list-collection/list-collection.js +44 -38
  137. package/dist/collection/implementations/list-collection/list-collection.js.map +1 -1
  138. package/dist/event-bus/contracts/event-bus-adapter.contract.d.ts +10 -4
  139. package/dist/event-bus/contracts/event-bus.contract.d.ts +22 -9
  140. package/dist/event-bus/implementations/adapters/memory-event-bus-adapter/memory-event-bus-adapter.d.ts +3 -4
  141. package/dist/event-bus/implementations/adapters/memory-event-bus-adapter/memory-event-bus-adapter.js +0 -1
  142. package/dist/event-bus/implementations/adapters/memory-event-bus-adapter/memory-event-bus-adapter.js.map +1 -1
  143. package/dist/event-bus/implementations/adapters/no-op-event-bus-adapter/no-op-event-bus-adapter.d.ts +3 -4
  144. package/dist/event-bus/implementations/adapters/no-op-event-bus-adapter/no-op-event-bus-adapter.js.map +1 -1
  145. package/dist/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/redis-pub-sub-event-bus-adapter.d.ts +3 -4
  146. package/dist/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/redis-pub-sub-event-bus-adapter.js +0 -1
  147. package/dist/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/redis-pub-sub-event-bus-adapter.js.map +1 -1
  148. package/dist/event-bus/implementations/derivables/event-bus/event-bus.d.ts +11 -11
  149. package/dist/event-bus/implementations/derivables/event-bus/event-bus.js +2 -2
  150. package/dist/event-bus/implementations/derivables/event-bus/event-bus.js.map +1 -1
  151. package/dist/event-bus/implementations/derivables/event-bus/listener-store.d.ts +4 -4
  152. package/dist/event-bus/implementations/derivables/event-bus/listener-store.js +1 -1
  153. package/dist/event-bus/implementations/derivables/event-bus/listener-store.js.map +1 -1
  154. package/dist/event-bus/implementations/test-utilities/event-bus.test-suite.js.map +1 -1
  155. package/dist/lock/contracts/lock-provider-factory.contract.js +1 -1
  156. package/dist/lock/contracts/lock-provider-factory.contract.js.map +1 -1
  157. package/dist/lock/contracts/lock.contract.d.ts +5 -5
  158. package/dist/lock/contracts/lock.events.d.ts +1 -1
  159. package/dist/lock/implementations/derivables/lock-provider/lock-provider.d.ts +12 -12
  160. package/dist/lock/implementations/derivables/lock-provider/lock-provider.js +3 -3
  161. package/dist/lock/implementations/derivables/lock-provider/lock-provider.js.map +1 -1
  162. package/dist/lock/implementations/derivables/lock-provider/lock-serde-transformer.d.ts +1 -1
  163. package/dist/lock/implementations/derivables/lock-provider/lock.d.ts +14 -14
  164. package/dist/lock/implementations/derivables/lock-provider/lock.js +5 -17
  165. package/dist/lock/implementations/derivables/lock-provider/lock.js.map +1 -1
  166. package/dist/utilities/_module-exports.d.ts +2 -2
  167. package/dist/utilities/_module-exports.js +2 -2
  168. package/dist/utilities/_module-exports.js.map +1 -1
  169. package/dist/utilities/classes/_module.d.ts +0 -1
  170. package/dist/utilities/classes/_module.js +0 -1
  171. package/dist/utilities/classes/_module.js.map +1 -1
  172. package/dist/utilities/classes/key-prefixer/key-prefixer.contract.d.ts +1 -1
  173. package/dist/utilities/classes/key-prefixer/key-prefixer.d.ts +1 -1
  174. package/dist/utilities/classes/key-prefixer/key-prefixer.js +1 -1
  175. package/dist/utilities/classes/key-prefixer/key-prefixer.js.map +1 -1
  176. package/dist/utilities/functions/_module-exports.d.ts +7 -0
  177. package/dist/utilities/functions/_module-exports.js +8 -0
  178. package/dist/utilities/functions/_module-exports.js.map +1 -0
  179. package/dist/utilities/functions/factory.d.ts +44 -0
  180. package/dist/utilities/functions/factory.js +80 -0
  181. package/dist/utilities/functions/factory.js.map +1 -0
  182. package/dist/utilities/functions/get-constructor-name.d.ts +7 -0
  183. package/dist/utilities/functions/get-constructor-name.js +10 -0
  184. package/dist/utilities/functions/get-constructor-name.js.map +1 -0
  185. package/dist/utilities/functions/invokable.d.ts +20 -0
  186. package/dist/utilities/functions/invokable.js +33 -0
  187. package/dist/utilities/functions/invokable.js.map +1 -0
  188. package/dist/utilities/functions/is-nullable.d.ts +7 -0
  189. package/dist/utilities/functions/is-nullable.js +10 -0
  190. package/dist/utilities/functions/is-nullable.js.map +1 -0
  191. package/dist/utilities/functions/lazy.d.ts +20 -0
  192. package/dist/utilities/functions/lazy.js +39 -0
  193. package/dist/utilities/functions/lazy.js.map +1 -0
  194. package/dist/utilities/functions/object.d.ts +15 -0
  195. package/dist/utilities/functions/object.js +33 -0
  196. package/dist/utilities/functions/object.js.map +1 -0
  197. package/dist/utilities/functions/resolve-one-or-more.d.ts +12 -0
  198. package/dist/utilities/functions/resolve-one-or-more.js +25 -0
  199. package/dist/utilities/functions/resolve-one-or-more.js.map +1 -0
  200. package/dist/utilities/types/_module.d.ts +10 -0
  201. package/dist/utilities/types/_module.js +11 -0
  202. package/dist/utilities/types/_module.js.map +1 -0
  203. package/dist/utilities/types/async-iterable-value.type.d.ts +8 -0
  204. package/dist/utilities/types/async-iterable-value.type.js +5 -0
  205. package/dist/utilities/types/async-iterable-value.type.js.map +1 -0
  206. package/dist/utilities/types/at-least-one.type.d.ts +8 -0
  207. package/dist/utilities/types/at-least-one.type.js +5 -0
  208. package/dist/utilities/types/at-least-one.type.js.map +1 -0
  209. package/dist/utilities/types/factory.type.d.ts +49 -0
  210. package/dist/utilities/types/factory.type.js +5 -0
  211. package/dist/utilities/types/factory.type.js.map +1 -0
  212. package/dist/utilities/types/invokable.type.d.ts +20 -0
  213. package/dist/utilities/types/invokable.type.js +5 -0
  214. package/dist/utilities/types/invokable.type.js.map +1 -0
  215. package/dist/utilities/types/items.type.d.ts +8 -0
  216. package/dist/utilities/types/items.type.js +5 -0
  217. package/dist/utilities/types/items.type.js.map +1 -0
  218. package/dist/utilities/types/lazy.type.d.ts +31 -0
  219. package/dist/utilities/{types.js → types/lazy.type.js} +1 -1
  220. package/dist/utilities/types/lazy.type.js.map +1 -0
  221. package/dist/utilities/types/none-func.type.d.ts +8 -0
  222. package/dist/utilities/types/none-func.type.js +5 -0
  223. package/dist/utilities/types/none-func.type.js.map +1 -0
  224. package/dist/utilities/types/one-or-more.type.d.ts +8 -0
  225. package/dist/utilities/types/one-or-more.type.js +5 -0
  226. package/dist/utilities/types/one-or-more.type.js.map +1 -0
  227. package/dist/utilities/types/promiseable.type.d.ts +8 -0
  228. package/dist/utilities/types/promiseable.type.js +5 -0
  229. package/dist/utilities/types/promiseable.type.js.map +1 -0
  230. package/dist/utilities/types/result.type.d.ts +8 -0
  231. package/dist/utilities/types/result.type.js +5 -0
  232. package/dist/utilities/types/result.type.js.map +1 -0
  233. package/package.json +1 -1
  234. package/dist/collection/contracts/_shared.d.ts +0 -141
  235. package/dist/collection/contracts/_shared.js.map +0 -1
  236. package/dist/utilities/classes/pipeline/_module.d.ts +0 -1
  237. package/dist/utilities/classes/pipeline/_module.js +0 -2
  238. package/dist/utilities/classes/pipeline/_module.js.map +0 -1
  239. package/dist/utilities/classes/pipeline/pipeline.d.ts +0 -46
  240. package/dist/utilities/classes/pipeline/pipeline.js +0 -76
  241. package/dist/utilities/classes/pipeline/pipeline.js.map +0 -1
  242. package/dist/utilities/functions.d.ts +0 -57
  243. package/dist/utilities/functions.js +0 -123
  244. package/dist/utilities/functions.js.map +0 -1
  245. package/dist/utilities/types.d.ts +0 -104
  246. package/dist/utilities/types.js.map +0 -1
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @module Utilities
3
+ */
4
+ /**
5
+ * @internal
6
+ */
7
+ export function isNullable(value) {
8
+ return value === null || value === undefined;
9
+ }
10
+ //# sourceMappingURL=is-nullable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-nullable.js","sourceRoot":"","sources":["../../../src/utilities/functions/is-nullable.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,UAAU,UAAU,CAAS,KAAa;IAC5C,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AACjD,CAAC"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @module Utilities
3
+ */
4
+ import type { AsyncLazyable, Lazyable, Lazy, AsyncLazy } from "../../utilities/types/_module.js";
5
+ /**
6
+ * @internal
7
+ */
8
+ export declare function isLazy<TValue>(lazyable: Lazyable<TValue>): lazyable is Lazy<TValue>;
9
+ /**
10
+ * @internal
11
+ */
12
+ export declare function isAsyncLazy<TValue>(lazyable: AsyncLazyable<TValue>): lazyable is AsyncLazy<TValue>;
13
+ /**
14
+ * @internal
15
+ */
16
+ export declare function resolveLazyable<TValue>(lazyable: Lazyable<TValue>): TValue;
17
+ /**
18
+ * @internal
19
+ */
20
+ export declare function resolveAsyncLazyable<TValue>(lazyable: AsyncLazyable<TValue>): Promise<TValue>;
@@ -0,0 +1,39 @@
1
+ /**
2
+ * @module Utilities
3
+ */
4
+ import { LazyPromise } from "../../async/_module-exports.js";
5
+ import { isInvokable, resolveInvokable, } from "../../utilities/functions/invokable.js";
6
+ /**
7
+ * @internal
8
+ */
9
+ export function isLazy(lazyable) {
10
+ return isInvokable(lazyable);
11
+ }
12
+ /**
13
+ * @internal
14
+ */
15
+ export function isAsyncLazy(lazyable) {
16
+ return isInvokable(lazyable) || lazyable instanceof LazyPromise;
17
+ }
18
+ /**
19
+ * @internal
20
+ */
21
+ export function resolveLazyable(lazyable) {
22
+ if (isLazy(lazyable)) {
23
+ return resolveInvokable(lazyable)();
24
+ }
25
+ return lazyable;
26
+ }
27
+ /**
28
+ * @internal
29
+ */
30
+ export async function resolveAsyncLazyable(lazyable) {
31
+ if (isAsyncLazy(lazyable)) {
32
+ if (lazyable instanceof LazyPromise) {
33
+ return await lazyable;
34
+ }
35
+ return await resolveInvokable(lazyable)();
36
+ }
37
+ return lazyable;
38
+ }
39
+ //# sourceMappingURL=lazy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lazy.js","sourceRoot":"","sources":["../../../src/utilities/functions/lazy.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAOzD,OAAO,EACH,WAAW,EACX,gBAAgB,GACnB,MAAM,oCAAoC,CAAC;AAE5C;;GAEG;AACH,MAAM,UAAU,MAAM,CAClB,QAA0B;IAE1B,OAAO,WAAW,CAAC,QAAQ,CAAC,CAAC;AACjC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,WAAW,CACvB,QAA+B;IAE/B,OAAO,WAAW,CAAC,QAAQ,CAAC,IAAI,QAAQ,YAAY,WAAW,CAAC;AACpE,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,eAAe,CAAS,QAA0B;IAC9D,IAAI,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;QACnB,OAAO,gBAAgB,CAAC,QAAQ,CAAC,EAAE,CAAC;IACxC,CAAC;IACD,OAAO,QAAQ,CAAC;AACpB,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,oBAAoB,CACtC,QAA+B;IAE/B,IAAI,WAAW,CAAC,QAAQ,CAAC,EAAE,CAAC;QACxB,IAAI,QAAQ,YAAY,WAAW,EAAE,CAAC;YAClC,OAAO,MAAM,QAAQ,CAAC;QAC1B,CAAC;QACD,OAAO,MAAM,gBAAgB,CAAC,QAAQ,CAAC,EAAE,CAAC;IAC9C,CAAC;IACD,OAAO,QAAQ,CAAC;AACpB,CAAC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @module Utilities
3
+ */
4
+ /**
5
+ * @internal
6
+ */
7
+ export declare function objectSize(object: Record<string | number | symbol, any>): number;
8
+ /**
9
+ * @internal
10
+ */
11
+ export declare function isObjectEmpty(object: Record<string | number | symbol, any>): boolean;
12
+ /**
13
+ * @internal
14
+ */
15
+ export declare function removeUndefinedProperties<TObject extends Partial<Record<string, unknown>>>(object: TObject): TObject;
@@ -0,0 +1,33 @@
1
+ /**
2
+ * @module Utilities
3
+ */
4
+ /**
5
+ * @internal
6
+ */
7
+ export function objectSize(
8
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
9
+ object) {
10
+ let size = 0;
11
+ for (const key in object) {
12
+ if (object[key] === undefined) {
13
+ continue;
14
+ }
15
+ size++;
16
+ }
17
+ return size;
18
+ }
19
+ /**
20
+ * @internal
21
+ */
22
+ export function isObjectEmpty(
23
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
24
+ object) {
25
+ return objectSize(object) === 0;
26
+ }
27
+ /**
28
+ * @internal
29
+ */
30
+ export function removeUndefinedProperties(object) {
31
+ return Object.fromEntries(Object.entries(object).filter(([_key, value]) => value !== undefined));
32
+ }
33
+ //# sourceMappingURL=object.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"object.js","sourceRoot":"","sources":["../../../src/utilities/functions/object.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,UAAU,UAAU;AACtB,8DAA8D;AAC9D,MAA6C;IAE7C,IAAI,IAAI,GAAG,CAAC,CAAC;IACb,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE,CAAC;QACvB,IAAI,MAAM,CAAC,GAAG,CAAC,KAAK,SAAS,EAAE,CAAC;YAC5B,SAAS;QACb,CAAC;QACD,IAAI,EAAE,CAAC;IACX,CAAC;IACD,OAAO,IAAI,CAAC;AAChB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,aAAa;AACzB,8DAA8D;AAC9D,MAA6C;IAE7C,OAAO,UAAU,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AACpC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,yBAAyB,CAEvC,MAAe;IACb,OAAO,MAAM,CAAC,WAAW,CACrB,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,KAAK,SAAS,CAAC,CAC7D,CAAC;AACjB,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @module Utilities
3
+ */
4
+ import type { OneOrMore } from "../../utilities/types/_module.js";
5
+ /**
6
+ * @internal
7
+ */
8
+ export declare function resolveOneOrMore<TType>(value: OneOrMore<TType>): TType[];
9
+ /**
10
+ * @internal
11
+ */
12
+ export declare function resolveOneOrMoreStr(name: OneOrMore<string>, joinStr?: string): string;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @module Utilities
3
+ */
4
+ import { isIterable } from "../../collection/implementations/_shared.js";
5
+ /**
6
+ * @internal
7
+ */
8
+ export function resolveOneOrMore(value) {
9
+ if (isIterable(value)) {
10
+ return [...value];
11
+ }
12
+ return [value];
13
+ }
14
+ /**
15
+ * @internal
16
+ */
17
+ export function resolveOneOrMoreStr(name, joinStr = "/") {
18
+ if (typeof name === "string") {
19
+ return name;
20
+ }
21
+ return resolveOneOrMore(name)
22
+ .filter((str) => str.length > 0)
23
+ .join(joinStr);
24
+ }
25
+ //# sourceMappingURL=resolve-one-or-more.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve-one-or-more.js","sourceRoot":"","sources":["../../../src/utilities/functions/resolve-one-or-more.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AAGrE;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAQ,KAAuB;IAC3D,IAAI,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC;QACpB,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC;IACtB,CAAC;IACD,OAAO,CAAC,KAAK,CAAC,CAAC;AACnB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,mBAAmB,CAC/B,IAAuB,EACvB,OAAO,GAAG,GAAG;IAEb,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO,gBAAgB,CAAC,IAAI,CAAC;SACxB,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC;SAC/B,IAAI,CAAC,OAAO,CAAC,CAAC;AACvB,CAAC"}
@@ -0,0 +1,10 @@
1
+ export * from "../../utilities/types/async-iterable-value.type.js";
2
+ export * from "../../utilities/types/at-least-one.type.js";
3
+ export * from "../../utilities/types/factory.type.js";
4
+ export * from "../../utilities/types/none-func.type.js";
5
+ export * from "../../utilities/types/invokable.type.js";
6
+ export * from "../../utilities/types/items.type.js";
7
+ export * from "../../utilities/types/lazy.type.js";
8
+ export * from "../../utilities/types/one-or-more.type.js";
9
+ export * from "../../utilities/types/promiseable.type.js";
10
+ export * from "../../utilities/types/result.type.js";
@@ -0,0 +1,11 @@
1
+ export * from "../../utilities/types/async-iterable-value.type.js";
2
+ export * from "../../utilities/types/at-least-one.type.js";
3
+ export * from "../../utilities/types/factory.type.js";
4
+ export * from "../../utilities/types/none-func.type.js";
5
+ export * from "../../utilities/types/invokable.type.js";
6
+ export * from "../../utilities/types/items.type.js";
7
+ export * from "../../utilities/types/lazy.type.js";
8
+ export * from "../../utilities/types/one-or-more.type.js";
9
+ export * from "../../utilities/types/promiseable.type.js";
10
+ export * from "../../utilities/types/result.type.js";
11
+ //# sourceMappingURL=_module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_module.js","sourceRoot":"","sources":["../../../src/utilities/types/_module.ts"],"names":[],"mappings":"AAAA,cAAc,gDAAgD,CAAC;AAC/D,cAAc,wCAAwC,CAAC;AACvD,cAAc,mCAAmC,CAAC;AAClD,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,kCAAkC,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @module Utilities
3
+ */
4
+ /**
5
+ *
6
+ * IMPORT_PATH: ```"@daiso-tech/core/utilities"```
7
+ */
8
+ export type AsyncIterableValue<TInput> = Iterable<TInput> | AsyncIterable<TInput>;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @module Utilities
3
+ */
4
+ export {};
5
+ //# sourceMappingURL=async-iterable-value.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"async-iterable-value.type.js","sourceRoot":"","sources":["../../../src/utilities/types/async-iterable-value.type.ts"],"names":[],"mappings":"AAAA;;GAEG"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @module Utilities
3
+ */
4
+ /**
5
+ *
6
+ * IMPORT_PATH: ```"@daiso-tech/core/utilities"```
7
+ */
8
+ export type AtLeastOne<TItem> = [TItem, ...TItem[]];
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @module Utilities
3
+ */
4
+ export {};
5
+ //# sourceMappingURL=at-least-one.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"at-least-one.type.js","sourceRoot":"","sources":["../../../src/utilities/types/at-least-one.type.ts"],"names":[],"mappings":"AAAA;;GAEG"}
@@ -0,0 +1,49 @@
1
+ /**
2
+ * @module Utilities
3
+ */
4
+ import type { NoneFunc } from "../../utilities/types/none-func.type.js";
5
+ import type { Promisable } from "../../utilities/types/promiseable.type.js";
6
+ /**
7
+ *
8
+ * IMPORT_PATH: ```"@daiso-tech/core/utilities"```
9
+ */
10
+ export type FactoryFn<TInput, TOutput> = (value: TInput) => NoneFunc<TOutput>;
11
+ /**
12
+ *
13
+ * IMPORT_PATH: ```"@daiso-tech/core/utilities"```
14
+ */
15
+ export type IFactoryObject<TInput, TOutput> = {
16
+ use(value: TInput): NoneFunc<TOutput>;
17
+ };
18
+ /**
19
+ *
20
+ * IMPORT_PATH: ```"@daiso-tech/core/utilities"```
21
+ */
22
+ export type Factory<TInput, TOutput> = FactoryFn<TInput, TOutput> | IFactoryObject<TInput, TOutput>;
23
+ /**
24
+ *
25
+ * IMPORT_PATH: ```"@daiso-tech/core/utilities"```
26
+ */
27
+ export type Factoryable<TInput, TOutput> = TOutput | Factory<TInput, TOutput>;
28
+ /**
29
+ *
30
+ * IMPORT_PATH: ```"@daiso-tech/core/utilities"```
31
+ */
32
+ export type AsyncFactoryFn<TInput, TOutput> = (value: TInput) => Promisable<NoneFunc<TOutput>>;
33
+ /**
34
+ *
35
+ * IMPORT_PATH: ```"@daiso-tech/core/utilities"```
36
+ */
37
+ export type IAsyncFactoryObject<TInput, TOutput> = {
38
+ use(value: TInput): Promisable<NoneFunc<TOutput>>;
39
+ };
40
+ /**
41
+ *
42
+ * IMPORT_PATH: ```"@daiso-tech/core/utilities"```
43
+ */
44
+ export type AsyncFactory<TInput, TOutput> = AsyncFactoryFn<TInput, TOutput> | IAsyncFactoryObject<TInput, TOutput>;
45
+ /**
46
+ *
47
+ * IMPORT_PATH: ```"@daiso-tech/core/utilities"```
48
+ */
49
+ export type AsyncFactoryable<TInput, TOutput> = TOutput | AsyncFactory<TInput, TOutput>;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @module Utilities
3
+ */
4
+ export {};
5
+ //# sourceMappingURL=factory.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"factory.type.js","sourceRoot":"","sources":["../../../src/utilities/types/factory.type.ts"],"names":[],"mappings":"AAAA;;GAEG"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @module Utilities
3
+ */
4
+ /**
5
+ *
6
+ * IMPORT_PATH: ```"@daiso-tech/core/utilities"```
7
+ */
8
+ export type InvokableFn<TArgs extends unknown[] = unknown[], TReturn = unknown> = (...args: TArgs) => TReturn;
9
+ /**
10
+ *
11
+ * IMPORT_PATH: ```"@daiso-tech/core/utilities"```
12
+ */
13
+ export type IInvokableObject<TArgs extends unknown[] = unknown[], TReturn = unknown> = {
14
+ invoke(...args: TArgs): TReturn;
15
+ };
16
+ /**
17
+ *
18
+ * IMPORT_PATH: ```"@daiso-tech/core/utilities"```
19
+ */
20
+ export type Invokable<TArgs extends unknown[] = unknown[], TReturn = unknown> = InvokableFn<TArgs, TReturn> | IInvokableObject<TArgs, TReturn>;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @module Utilities
3
+ */
4
+ export {};
5
+ //# sourceMappingURL=invokable.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invokable.type.js","sourceRoot":"","sources":["../../../src/utilities/types/invokable.type.ts"],"names":[],"mappings":"AAAA;;GAEG"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @module Utilities
3
+ */
4
+ /**
5
+ *
6
+ * IMPORT_PATH: ```"@daiso-tech/core/utilities"```
7
+ */
8
+ export type Items<TArray extends any[]> = TArray[number];
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @module Utilities
3
+ */
4
+ export {};
5
+ //# sourceMappingURL=items.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"items.type.js","sourceRoot":"","sources":["../../../src/utilities/types/items.type.ts"],"names":[],"mappings":"AAAA;;GAEG"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * @module Utilities
3
+ */
4
+ import type { LazyPromise } from "../../async/_module-exports.js";
5
+ import type { Promisable } from "../../utilities/types/promiseable.type.js";
6
+ import type { Invokable } from "../../utilities/types/invokable.type.js";
7
+ /**
8
+ *
9
+ * IMPORT_PATH: ```"@daiso-tech/core/utilities"```
10
+ */
11
+ export type Lazy<TValue> = Invokable<[], TValue>;
12
+ /**
13
+ *
14
+ * IMPORT_PATH: ```"@daiso-tech/core/utilities"```
15
+ */
16
+ export type Lazyable<TValue> = TValue | Lazy<TValue>;
17
+ /**
18
+ *
19
+ * IMPORT_PATH: ```"@daiso-tech/core/utilities"```
20
+ */
21
+ export type AsyncLazy_<TValue> = Invokable<[], Promisable<TValue>>;
22
+ /**
23
+ *
24
+ * IMPORT_PATH: ```"@daiso-tech/core/utilities"```
25
+ */
26
+ export type AsyncLazy<TValue> = AsyncLazy_<TValue> | LazyPromise<TValue>;
27
+ /**
28
+ *
29
+ * IMPORT_PATH: ```"@daiso-tech/core/utilities"```
30
+ */
31
+ export type AsyncLazyable<TValue> = TValue | AsyncLazy<TValue>;
@@ -2,4 +2,4 @@
2
2
  * @module Utilities
3
3
  */
4
4
  export {};
5
- //# sourceMappingURL=types.js.map
5
+ //# sourceMappingURL=lazy.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lazy.type.js","sourceRoot":"","sources":["../../../src/utilities/types/lazy.type.ts"],"names":[],"mappings":"AAAA;;GAEG"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @module Utilities
3
+ */
4
+ /**
5
+ *
6
+ * IMPORT_PATH: ```"@daiso-tech/core/utilities"```
7
+ */
8
+ export type NoneFunc<TType> = Exclude<TType, (...args: unknown[]) => unknown>;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @module Utilities
3
+ */
4
+ export {};
5
+ //# sourceMappingURL=none-func.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"none-func.type.js","sourceRoot":"","sources":["../../../src/utilities/types/none-func.type.ts"],"names":[],"mappings":"AAAA;;GAEG"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @module Utilities
3
+ */
4
+ /**
5
+ *
6
+ * IMPORT_PATH: ```"@daiso-tech/core/utilities"```
7
+ */
8
+ export type OneOrMore<TItem> = TItem | Iterable<TItem>;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @module Utilities
3
+ */
4
+ export {};
5
+ //# sourceMappingURL=one-or-more.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"one-or-more.type.js","sourceRoot":"","sources":["../../../src/utilities/types/one-or-more.type.ts"],"names":[],"mappings":"AAAA;;GAEG"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @module Utilities
3
+ */
4
+ /**
5
+ *
6
+ * IMPORT_PATH: ```"@daiso-tech/core/utilities"```
7
+ */
8
+ export type Promisable<TValue> = TValue | PromiseLike<TValue>;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @module Utilities
3
+ */
4
+ export {};
5
+ //# sourceMappingURL=promiseable.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"promiseable.type.js","sourceRoot":"","sources":["../../../src/utilities/types/promiseable.type.ts"],"names":[],"mappings":"AAAA;;GAEG"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @module Utilities
3
+ */
4
+ /**
5
+ *
6
+ * IMPORT_PATH: ```"@daiso-tech/core/utilities"```
7
+ */
8
+ export type Result<TValue, TError> = [TValue, null] | [null, TError];
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @module Utilities
3
+ */
4
+ export {};
5
+ //# sourceMappingURL=result.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"result.type.js","sourceRoot":"","sources":["../../../src/utilities/types/result.type.ts"],"names":[],"mappings":"AAAA;;GAEG"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@daiso-tech/core",
3
3
  "private": false,
4
- "version": "0.29.0",
4
+ "version": "0.31.0",
5
5
  "author": "Yousif Abdulkarim",
6
6
  "license": "Apache-2.0",
7
7
  "type": "module",
@@ -1,141 +0,0 @@
1
- /**
2
- * @module Collection
3
- */
4
- /**
5
- *
6
- * IMPORT_PATH: ```"@daiso-tech/core/collection/contracts"```
7
- */
8
- export type Comparator<TItem> = (itemA: TItem, itemB: TItem) => number;
9
- /**
10
- *
11
- * IMPORT_PATH: ```"@daiso-tech/core/collection/contracts"```
12
- */
13
- export type Predicate_<TInput, TCollection> = (item: TInput, index: number, collection: TCollection) => boolean;
14
- /**
15
- *
16
- * IMPORT_PATH: ```"@daiso-tech/core/collection/contracts"```
17
- */
18
- export type PredicateGuard<TInput, TCollection, TOutput extends TInput = TInput> = (item: TInput, index: number, collection: TCollection) => item is TOutput;
19
- /**
20
- *
21
- * IMPORT_PATH: ```"@daiso-tech/core/collection/contracts"```
22
- */
23
- export type Predicate<TInput, TCollection, TOutput extends TInput = TInput> = Predicate_<TInput, TCollection> | PredicateGuard<TInput, TCollection, TOutput>;
24
- /**
25
- *
26
- * IMPORT_PATH: ```"@daiso-tech/core/collection/contracts"```
27
- */
28
- export type Reduce<TInput, TCollection, TOutput> = (output: TOutput, item: TInput, index: number, collection: TCollection) => TOutput;
29
- /**
30
- *
31
- * IMPORT_PATH: ```"@daiso-tech/core/collection/contracts"```
32
- */
33
- export type Map<TInput, TCollection, TOutput> = (item: TInput, index: number, collection: TCollection) => TOutput;
34
- /**
35
- *
36
- * IMPORT_PATH: ```"@daiso-tech/core/collection/contracts"```
37
- */
38
- export type ForEach<TInput, TCollection> = (item: TInput, index: number, collection: TCollection) => void;
39
- /**
40
- *
41
- * IMPORT_PATH: ```"@daiso-tech/core/collection/contracts"```
42
- */
43
- export type Modifier<TInput, TOutput> = (collection: TInput) => TOutput;
44
- /**
45
- *
46
- * IMPORT_PATH: ```"@daiso-tech/core/collection/contracts"```
47
- */
48
- export type Tap<TCollection> = (collection: TCollection) => void;
49
- /**
50
- *
51
- * IMPORT_PATH: ```"@daiso-tech/core/collection/contracts"```
52
- */
53
- export type Transform<TInput, TOutput> = (value: TInput) => TOutput;
54
- /**
55
- *
56
- * IMPORT_PATH: ```"@daiso-tech/core/collection/contracts"```
57
- */
58
- export type AsyncPredicate_<TInput, TCollection> = (item: TInput, index: number, collection: TCollection) => PromiseLike<boolean>;
59
- /**
60
- *
61
- * IMPORT_PATH: ```"@daiso-tech/core/collection/contracts"```
62
- */
63
- export type AsyncPredicate<TInput, TCollection, TOutput extends TInput = TInput> = AsyncPredicate_<TInput, TCollection> | Predicate<TInput, TCollection, TOutput>;
64
- /**
65
- *
66
- * IMPORT_PATH: ```"@daiso-tech/core/collection/contracts"```
67
- */
68
- export type AsyncReduce_<TInput, TCollection, TOutput> = (output: TOutput, item: TInput, index: number, collection: TCollection) => PromiseLike<TOutput>;
69
- /**
70
- *
71
- * IMPORT_PATH: ```"@daiso-tech/core/collection/contracts"```
72
- */
73
- export type AsyncReduce<TInput, TCollection, TOutput> = AsyncReduce_<TInput, TCollection, TOutput> | Reduce<TInput, TCollection, TOutput>;
74
- /**
75
- *
76
- * IMPORT_PATH: ```"@daiso-tech/core/collection/contracts"```
77
- */
78
- export type AsyncMap_<TInput, TCollection, TOutput> = (item: TInput, index: number, collection: TCollection) => PromiseLike<TOutput>;
79
- /**
80
- *
81
- * IMPORT_PATH: ```"@daiso-tech/core/collection/contracts"```
82
- */
83
- export type AsyncMap<TInput, TCollection, TOutput> = AsyncMap_<TInput, TCollection, TOutput> | Map<TInput, TCollection, TOutput>;
84
- /**
85
- *
86
- * IMPORT_PATH: ```"@daiso-tech/core/collection/contracts"```
87
- */
88
- export type AsyncForEach_<TInput, TCollection> = (item: TInput, index: number, collection: TCollection) => PromiseLike<void>;
89
- /**
90
- *
91
- * IMPORT_PATH: ```"@daiso-tech/core/collection/contracts"```
92
- */
93
- export type AsyncForEach<TInput, TCollection> = ForEach<TInput, TCollection> | AsyncForEach_<TInput, TCollection>;
94
- /**
95
- *
96
- * IMPORT_PATH: ```"@daiso-tech/core/collection/contracts"```
97
- */
98
- export type AsyncModifier_<TInput, TOutput> = (collection: TInput) => PromiseLike<TOutput>;
99
- /**
100
- *
101
- * IMPORT_PATH: ```"@daiso-tech/core/collection/contracts"```
102
- */
103
- export type AsyncModifier<TInput, TOutput> = Modifier<TInput, TOutput> | AsyncModifier_<TInput, TOutput>;
104
- /**
105
- *
106
- * IMPORT_PATH: ```"@daiso-tech/core/collection/contracts"```
107
- */
108
- export type AsyncTap_<TCollection> = (collection: TCollection) => PromiseLike<void>;
109
- /**
110
- *
111
- * IMPORT_PATH: ```"@daiso-tech/core/collection/contracts"```
112
- */
113
- export type AsyncTap<TCollection> = Tap<TCollection> | AsyncTap_<TCollection>;
114
- /**
115
- *
116
- * IMPORT_PATH: ```"@daiso-tech/core/collection/contracts"```
117
- */
118
- export type AsyncTransform_<TInput, TOutput> = (value: TInput) => PromiseLike<TOutput>;
119
- /**
120
- *
121
- * IMPORT_PATH: ```"@daiso-tech/core/collection/contracts"```
122
- */
123
- export type AsyncTransform<TInput, TOutput> = Transform<TInput, TOutput> | AsyncTransform_<TInput, TOutput>;
124
- /**
125
- *
126
- * IMPORT_PATH: ```"@daiso-tech/core/collection/contracts"```
127
- */
128
- export type CrossJoinResult<TInput, TExtended> = TInput extends [
129
- infer R,
130
- ...infer L
131
- ] ? [R, ...L, TExtended] : [TInput, TExtended];
132
- /**
133
- *
134
- * IMPORT_PATH: ```"@daiso-tech/core/collection/contracts"```
135
- */
136
- export type EnsureRecord<TInput> = TInput extends [infer TKey, infer TValue] | readonly [infer TKey, infer TValue] ? TKey extends string | number | symbol ? Record<TKey, TValue> : never : never;
137
- /**
138
- *
139
- * IMPORT_PATH: ```"@daiso-tech/core/collection/contracts"```
140
- */
141
- export type EnsureMap<TInput> = TInput extends [infer TKey, infer TValue] | readonly [infer TKey, infer TValue] ? globalThis.Map<TKey, TValue> : never;
@@ -1 +0,0 @@
1
- {"version":3,"file":"_shared.js","sourceRoot":"","sources":["../../../src/collection/contracts/_shared.ts"],"names":[],"mappings":"AAAA;;GAEG"}
@@ -1 +0,0 @@
1
- export * from "../../../utilities/classes/pipeline/pipeline.js";