@daiso-tech/core 0.28.1 → 0.30.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/README.md +8 -2
- package/dist/async/utilities/abort/abort.d.ts +1 -1
- package/dist/async/utilities/lazy-promise/lazy-promise.d.ts +3 -4
- package/dist/async/utilities/lazy-promise/lazy-promise.js.map +1 -1
- package/dist/async/utilities/retry/retry.d.ts +1 -1
- package/dist/async/utilities/timeout/timeout.d.ts +1 -1
- package/dist/cache/contracts/cache-factory.contract.js +1 -1
- package/dist/cache/contracts/cache-factory.contract.js.map +1 -1
- package/dist/cache/contracts/cache.contract.d.ts +3 -3
- package/dist/cache/implementations/derivables/cache/cache.d.ts +18 -13
- package/dist/cache/implementations/derivables/cache/cache.js +10 -3
- package/dist/cache/implementations/derivables/cache/cache.js.map +1 -1
- package/dist/cache/implementations/derivables/cache/is-database-cache-adapter.js.map +1 -1
- package/dist/collection/contracts/_module-exports.d.ts +1 -1
- package/dist/collection/contracts/_module-exports.js +1 -1
- package/dist/collection/contracts/_module-exports.js.map +1 -1
- package/dist/collection/contracts/_shared/_module.d.ts +11 -0
- package/dist/collection/contracts/_shared/_module.js +12 -0
- package/dist/collection/contracts/_shared/_module.js.map +1 -0
- package/dist/collection/contracts/_shared/compartor.type.d.ts +9 -0
- package/dist/collection/contracts/_shared/compartor.type.js +5 -0
- package/dist/collection/contracts/_shared/compartor.type.js.map +1 -0
- package/dist/collection/contracts/_shared/cross-join-result.type.d.ts +11 -0
- package/dist/collection/contracts/_shared/cross-join-result.type.js +5 -0
- package/dist/collection/contracts/_shared/cross-join-result.type.js.map +1 -0
- package/dist/collection/contracts/_shared/ensure-map.type.d.ts +8 -0
- package/dist/collection/contracts/_shared/ensure-map.type.js +5 -0
- package/dist/collection/contracts/_shared/ensure-map.type.js.map +1 -0
- package/dist/collection/contracts/_shared/ensure-record.type.d.ts +8 -0
- package/dist/collection/contracts/_shared/ensure-record.type.js +5 -0
- package/dist/collection/contracts/_shared/ensure-record.type.js.map +1 -0
- package/dist/collection/contracts/_shared/foreach.type.d.ts +22 -0
- package/dist/collection/contracts/_shared/foreach.type.js +5 -0
- package/dist/collection/contracts/_shared/foreach.type.js.map +1 -0
- package/dist/collection/contracts/_shared/map.type.d.ts +22 -0
- package/dist/collection/contracts/{_shared.js → _shared/map.type.js} +1 -1
- package/dist/collection/contracts/_shared/map.type.js.map +1 -0
- package/dist/collection/contracts/_shared/modifier.type.d.ts +18 -0
- package/dist/collection/contracts/_shared/modifier.type.js +5 -0
- package/dist/collection/contracts/_shared/modifier.type.js.map +1 -0
- package/dist/collection/contracts/_shared/predicate.type.d.ts +49 -0
- package/dist/collection/contracts/_shared/predicate.type.js +5 -0
- package/dist/collection/contracts/_shared/predicate.type.js.map +1 -0
- package/dist/collection/contracts/_shared/reduce.type.d.ts +24 -0
- package/dist/collection/contracts/_shared/reduce.type.js +5 -0
- package/dist/collection/contracts/_shared/reduce.type.js.map +1 -0
- package/dist/collection/contracts/_shared/tap.type.d.ts +16 -0
- package/dist/collection/contracts/_shared/tap.type.js +5 -0
- package/dist/collection/contracts/_shared/tap.type.js.map +1 -0
- package/dist/collection/contracts/_shared/transform.type.d.ts +16 -0
- package/dist/collection/contracts/_shared/transform.type.js +5 -0
- package/dist/collection/contracts/_shared/transform.type.js.map +1 -0
- package/dist/collection/contracts/async-collection.contract.d.ts +3 -3
- package/dist/collection/contracts/collection.contract.d.ts +31 -31
- package/dist/collection/contracts/collection.errors.d.ts +1 -1
- package/dist/collection/contracts/collection.errors.js +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-chunk-while-iterable.js +2 -2
- package/dist/collection/implementations/async-iterable-collection/_shared/async-chunk-while-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-count-by-iterable.js +2 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-count-by-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-filter-iterable.js +2 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-filter-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-flat-map-iterable.js +2 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-flat-map-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-group-by-iterable.js +2 -2
- package/dist/collection/implementations/async-iterable-collection/_shared/async-group-by-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-insert-after-iterable.js +2 -2
- package/dist/collection/implementations/async-iterable-collection/_shared/async-insert-after-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-insert-before-iterable.js +2 -2
- package/dist/collection/implementations/async-iterable-collection/_shared/async-insert-before-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-map-iterable.js +2 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-map-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-partion-iterable.js +2 -2
- package/dist/collection/implementations/async-iterable-collection/_shared/async-partion-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-skip-until-iterable.js +2 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-skip-until-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-sort-iterable.js +6 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-sort-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-take-until-iterable.js +2 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-take-until-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-tap-iterable.js +2 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-tap-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-unique-iterable.js +2 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-unique-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-update-iterable.js +3 -2
- package/dist/collection/implementations/async-iterable-collection/_shared/async-update-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-when-iterable.js +2 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-when-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/async-iterable-collection.d.ts +3 -3
- package/dist/collection/implementations/async-iterable-collection/async-iterable-collection.js +25 -24
- package/dist/collection/implementations/async-iterable-collection/async-iterable-collection.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/chunk-while-iterable.d.ts +2 -2
- package/dist/collection/implementations/iterable-collection/_shared/chunk-while-iterable.js +2 -1
- package/dist/collection/implementations/iterable-collection/_shared/chunk-while-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/count-by-iterable.js +2 -1
- package/dist/collection/implementations/iterable-collection/_shared/count-by-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/filter-iterable.d.ts +2 -2
- package/dist/collection/implementations/iterable-collection/_shared/filter-iterable.js +2 -1
- package/dist/collection/implementations/iterable-collection/_shared/filter-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/flat-map-iterable.js +2 -1
- package/dist/collection/implementations/iterable-collection/_shared/flat-map-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/group-by-iterable.js +2 -1
- package/dist/collection/implementations/iterable-collection/_shared/group-by-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/insert-after-iterable.d.ts +2 -2
- package/dist/collection/implementations/iterable-collection/_shared/insert-after-iterable.js +3 -1
- package/dist/collection/implementations/iterable-collection/_shared/insert-after-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/insert-before-iterable.d.ts +2 -2
- package/dist/collection/implementations/iterable-collection/_shared/insert-before-iterable.js +3 -1
- package/dist/collection/implementations/iterable-collection/_shared/insert-before-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/map-iterable.js +2 -1
- package/dist/collection/implementations/iterable-collection/_shared/map-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/partion-iterable.d.ts +2 -2
- package/dist/collection/implementations/iterable-collection/_shared/partion-iterable.js +2 -1
- package/dist/collection/implementations/iterable-collection/_shared/partion-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/skip-until-iterable.d.ts +2 -2
- package/dist/collection/implementations/iterable-collection/_shared/skip-until-iterable.js +2 -1
- package/dist/collection/implementations/iterable-collection/_shared/skip-until-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/sort-iterable.js +6 -1
- package/dist/collection/implementations/iterable-collection/_shared/sort-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/take-until-iterable.d.ts +2 -2
- package/dist/collection/implementations/iterable-collection/_shared/take-until-iterable.js +2 -1
- package/dist/collection/implementations/iterable-collection/_shared/take-until-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/tap-iterable.js +2 -1
- package/dist/collection/implementations/iterable-collection/_shared/tap-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/unique-iterable.js +2 -1
- package/dist/collection/implementations/iterable-collection/_shared/unique-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/update-iterable.d.ts +2 -2
- package/dist/collection/implementations/iterable-collection/_shared/update-iterable.js +3 -2
- package/dist/collection/implementations/iterable-collection/_shared/update-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/when-iterable.js +2 -1
- package/dist/collection/implementations/iterable-collection/_shared/when-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/iterable-collection.d.ts +31 -31
- package/dist/collection/implementations/iterable-collection/iterable-collection.js +23 -22
- package/dist/collection/implementations/iterable-collection/iterable-collection.js.map +1 -1
- package/dist/collection/implementations/list-collection/list-collection.d.ts +31 -31
- package/dist/collection/implementations/list-collection/list-collection.js +44 -38
- package/dist/collection/implementations/list-collection/list-collection.js.map +1 -1
- package/dist/event-bus/contracts/event-bus-adapter.contract.d.ts +10 -4
- package/dist/event-bus/contracts/event-bus.contract.d.ts +26 -8
- package/dist/event-bus/implementations/adapters/memory-event-bus-adapter/memory-event-bus-adapter.d.ts +3 -4
- package/dist/event-bus/implementations/adapters/memory-event-bus-adapter/memory-event-bus-adapter.js +0 -1
- package/dist/event-bus/implementations/adapters/memory-event-bus-adapter/memory-event-bus-adapter.js.map +1 -1
- package/dist/event-bus/implementations/adapters/no-op-event-bus-adapter/no-op-event-bus-adapter.d.ts +3 -4
- package/dist/event-bus/implementations/adapters/no-op-event-bus-adapter/no-op-event-bus-adapter.js.map +1 -1
- package/dist/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/redis-pub-sub-event-bus-adapter.d.ts +3 -4
- package/dist/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/redis-pub-sub-event-bus-adapter.js +0 -1
- package/dist/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/redis-pub-sub-event-bus-adapter.js.map +1 -1
- package/dist/event-bus/implementations/derivables/event-bus/event-bus.d.ts +11 -10
- package/dist/event-bus/implementations/derivables/event-bus/event-bus.js +30 -6
- package/dist/event-bus/implementations/derivables/event-bus/event-bus.js.map +1 -1
- package/dist/event-bus/implementations/derivables/event-bus/listener-store.d.ts +4 -4
- package/dist/event-bus/implementations/derivables/event-bus/listener-store.js +10 -8
- package/dist/event-bus/implementations/derivables/event-bus/listener-store.js.map +1 -1
- package/dist/event-bus/implementations/test-utilities/event-bus.test-suite.js +453 -4
- package/dist/event-bus/implementations/test-utilities/event-bus.test-suite.js.map +1 -1
- package/dist/lock/contracts/lock-provider-factory.contract.js +1 -1
- package/dist/lock/contracts/lock-provider-factory.contract.js.map +1 -1
- package/dist/lock/contracts/lock.contract.d.ts +5 -5
- package/dist/lock/contracts/lock.events.d.ts +1 -1
- package/dist/lock/implementations/derivables/lock-provider/lock-provider.d.ts +16 -11
- package/dist/lock/implementations/derivables/lock-provider/lock-provider.js +10 -3
- package/dist/lock/implementations/derivables/lock-provider/lock-provider.js.map +1 -1
- package/dist/lock/implementations/derivables/lock-provider/lock-serde-transformer.d.ts +1 -1
- package/dist/lock/implementations/derivables/lock-provider/lock.d.ts +18 -13
- package/dist/lock/implementations/derivables/lock-provider/lock.js +12 -17
- package/dist/lock/implementations/derivables/lock-provider/lock.js.map +1 -1
- package/dist/utilities/_module-exports.d.ts +2 -2
- package/dist/utilities/_module-exports.js +2 -2
- package/dist/utilities/_module-exports.js.map +1 -1
- package/dist/utilities/classes/_module.d.ts +0 -1
- package/dist/utilities/classes/_module.js +0 -1
- package/dist/utilities/classes/_module.js.map +1 -1
- package/dist/utilities/classes/key-prefixer/key-prefixer.contract.d.ts +1 -1
- package/dist/utilities/classes/key-prefixer/key-prefixer.d.ts +1 -1
- package/dist/utilities/classes/key-prefixer/key-prefixer.js +1 -1
- package/dist/utilities/classes/key-prefixer/key-prefixer.js.map +1 -1
- package/dist/utilities/functions/_module-exports.d.ts +7 -0
- package/dist/utilities/functions/_module-exports.js +8 -0
- package/dist/utilities/functions/_module-exports.js.map +1 -0
- package/dist/utilities/functions/factory.d.ts +44 -0
- package/dist/utilities/functions/factory.js +80 -0
- package/dist/utilities/functions/factory.js.map +1 -0
- package/dist/utilities/functions/get-constructor-name.d.ts +7 -0
- package/dist/utilities/functions/get-constructor-name.js +10 -0
- package/dist/utilities/functions/get-constructor-name.js.map +1 -0
- package/dist/utilities/functions/invokable.d.ts +20 -0
- package/dist/utilities/functions/invokable.js +33 -0
- package/dist/utilities/functions/invokable.js.map +1 -0
- package/dist/utilities/functions/is-nullable.d.ts +7 -0
- package/dist/utilities/functions/is-nullable.js +10 -0
- package/dist/utilities/functions/is-nullable.js.map +1 -0
- package/dist/utilities/functions/lazy.d.ts +20 -0
- package/dist/utilities/functions/lazy.js +39 -0
- package/dist/utilities/functions/lazy.js.map +1 -0
- package/dist/utilities/functions/object.d.ts +15 -0
- package/dist/utilities/functions/object.js +33 -0
- package/dist/utilities/functions/object.js.map +1 -0
- package/dist/utilities/functions/resolve-one-or-more.d.ts +12 -0
- package/dist/utilities/functions/resolve-one-or-more.js +25 -0
- package/dist/utilities/functions/resolve-one-or-more.js.map +1 -0
- package/dist/utilities/types/_module.d.ts +10 -0
- package/dist/utilities/types/_module.js +11 -0
- package/dist/utilities/types/_module.js.map +1 -0
- package/dist/utilities/types/async-iterable-value.type.d.ts +8 -0
- package/dist/utilities/types/async-iterable-value.type.js +5 -0
- package/dist/utilities/types/async-iterable-value.type.js.map +1 -0
- package/dist/utilities/types/at-least-one.type.d.ts +8 -0
- package/dist/utilities/types/at-least-one.type.js +5 -0
- package/dist/utilities/types/at-least-one.type.js.map +1 -0
- package/dist/utilities/types/factory.type.d.ts +49 -0
- package/dist/utilities/types/factory.type.js +5 -0
- package/dist/utilities/types/factory.type.js.map +1 -0
- package/dist/utilities/types/invokable.type.d.ts +20 -0
- package/dist/utilities/types/invokable.type.js +5 -0
- package/dist/utilities/types/invokable.type.js.map +1 -0
- package/dist/utilities/types/items.type.d.ts +8 -0
- package/dist/utilities/types/items.type.js +5 -0
- package/dist/utilities/types/items.type.js.map +1 -0
- package/dist/utilities/types/lazy.type.d.ts +31 -0
- package/dist/utilities/{types.js → types/lazy.type.js} +1 -1
- package/dist/utilities/types/lazy.type.js.map +1 -0
- package/dist/utilities/types/none-func.type.d.ts +8 -0
- package/dist/utilities/types/none-func.type.js +5 -0
- package/dist/utilities/types/none-func.type.js.map +1 -0
- package/dist/utilities/types/one-or-more.type.d.ts +8 -0
- package/dist/utilities/types/one-or-more.type.js +5 -0
- package/dist/utilities/types/one-or-more.type.js.map +1 -0
- package/dist/utilities/types/promiseable.type.d.ts +8 -0
- package/dist/utilities/types/promiseable.type.js +5 -0
- package/dist/utilities/types/promiseable.type.js.map +1 -0
- package/dist/utilities/types/result.type.d.ts +8 -0
- package/dist/utilities/types/result.type.js +5 -0
- package/dist/utilities/types/result.type.js.map +1 -0
- package/package.json +85 -25
- package/dist/collection/contracts/_shared.d.ts +0 -141
- package/dist/collection/contracts/_shared.js.map +0 -1
- package/dist/utilities/classes/pipeline/_module.d.ts +0 -1
- package/dist/utilities/classes/pipeline/_module.js +0 -2
- package/dist/utilities/classes/pipeline/_module.js.map +0 -1
- package/dist/utilities/classes/pipeline/pipeline.d.ts +0 -46
- package/dist/utilities/classes/pipeline/pipeline.js +0 -76
- package/dist/utilities/classes/pipeline/pipeline.js.map +0 -1
- package/dist/utilities/functions.d.ts +0 -57
- package/dist/utilities/functions.js +0 -123
- package/dist/utilities/functions.js.map +0 -1
- package/dist/utilities/types.d.ts +0 -104
- package/dist/utilities/types.js.map +0 -1
|
@@ -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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"invokable.type.js","sourceRoot":"","sources":["../../../src/utilities/types/invokable.type.ts"],"names":[],"mappings":"AAAA;;GAEG"}
|
|
@@ -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>;
|
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"none-func.type.js","sourceRoot":"","sources":["../../../src/utilities/types/none-func.type.ts"],"names":[],"mappings":"AAAA;;GAEG"}
|
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"promiseable.type.js","sourceRoot":"","sources":["../../../src/utilities/types/promiseable.type.ts"],"names":[],"mappings":"AAAA;;GAEG"}
|
|
@@ -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,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@daiso-tech/core",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.30.0",
|
|
5
5
|
"author": "Yousif Abdulkarim",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"homepage": "https://yousif-khalil-abdulkarim.github.io/daiso-core/modules.html",
|
|
9
|
+
"description": "The library offers flexible, framework-agnostic solutions for modern web applications, built on adaptable components that integrate seamlessly with popular frameworks like Next Js.",
|
|
9
10
|
"repository": {
|
|
10
11
|
"type": "git",
|
|
11
|
-
"url": "https://github.com/yousif-khalil-abdulkarim/daiso-core.git"
|
|
12
|
+
"url": "git+https://github.com/yousif-khalil-abdulkarim/daiso-core.git"
|
|
12
13
|
},
|
|
13
14
|
"keywords": [
|
|
14
15
|
"Async collection",
|
|
@@ -42,29 +43,85 @@
|
|
|
42
43
|
"./dist"
|
|
43
44
|
],
|
|
44
45
|
"exports": {
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
},
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
},
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
},
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
46
|
+
"./async": {
|
|
47
|
+
"types": "./dist/async/_module-exports.d.ts",
|
|
48
|
+
"import": "./dist/async/_module-exports.js"
|
|
49
|
+
},
|
|
50
|
+
"./cache": {
|
|
51
|
+
"types": "./dist/cache/implementations/derivables/_module-exports.d.ts",
|
|
52
|
+
"import": "./dist/cache/implementations/derivables/_module-exports.js"
|
|
53
|
+
},
|
|
54
|
+
"./cache/contracts": {
|
|
55
|
+
"types": "./dist/cache/contracts/_module-exports.d.ts",
|
|
56
|
+
"import": "./dist/cache/contracts/_module-exports.js"
|
|
57
|
+
},
|
|
58
|
+
"./cache/adapters": {
|
|
59
|
+
"types": "./dist/cache/implementations/adapters/_module-exports.d.ts",
|
|
60
|
+
"import": "./dist/cache/implementations/adapters/_module-exports.js"
|
|
61
|
+
},
|
|
62
|
+
"./cache/test-utilities": {
|
|
63
|
+
"types": "./dist/cache/implementations/test-utilities/_module-exports.d.ts",
|
|
64
|
+
"import": "./dist/cache/implementations/test-utilities/_module-exports.js"
|
|
65
|
+
},
|
|
66
|
+
"./collection": {
|
|
67
|
+
"types": "./dist/collection/implementations/_module-exports.d.ts",
|
|
68
|
+
"import": "./dist/collection/implementations/_module-exports.js"
|
|
69
|
+
},
|
|
70
|
+
"./collection/contracts": {
|
|
71
|
+
"types": "./dist/collection/contracts/_module-exports.d.ts",
|
|
72
|
+
"import": "./dist/collection/contracts/_module-exports.js"
|
|
73
|
+
},
|
|
74
|
+
"./event-bus": {
|
|
75
|
+
"types": "./dist/event-bus/implementations/derivables/_module-exports.d.ts",
|
|
76
|
+
"import": "./dist/event-bus/implementations/derivables/_module-exports.js"
|
|
77
|
+
},
|
|
78
|
+
"./event-bus/contracts": {
|
|
79
|
+
"types": "./dist/event-bus/contracts/_module-exports.d.ts",
|
|
80
|
+
"import": "./dist/event-bus/contracts/_module-exports.js"
|
|
81
|
+
},
|
|
82
|
+
"./event-bus/adapters": {
|
|
83
|
+
"types": "./dist/event-bus/implementations/adapters/_module-exports.d.ts",
|
|
84
|
+
"import": "./dist/event-bus/implementations/adapters/_module-exports.js"
|
|
85
|
+
},
|
|
86
|
+
"./event-bus/test-utilities": {
|
|
87
|
+
"types": "./dist/event-bus/implementations/test-utilities/_module-exports.d.ts",
|
|
88
|
+
"import": "./dist/event-bus/implementations/test-utilities/_module-exports.js"
|
|
89
|
+
},
|
|
90
|
+
"./lock": {
|
|
91
|
+
"types": "./dist/lock/implementations/derivables/_module-exports.d.ts",
|
|
92
|
+
"import": "./dist/lock/implementations/derivables/_module-exports.js"
|
|
93
|
+
},
|
|
94
|
+
"./lock/contracts": {
|
|
95
|
+
"types": "./dist/lock/contracts/_module-exports.d.ts",
|
|
96
|
+
"import": "./dist/lock/contracts/_module-exports.js"
|
|
97
|
+
},
|
|
98
|
+
"./lock/adapters": {
|
|
99
|
+
"types": "./dist/lock/implementations/adapters/_module-exports.d.ts",
|
|
100
|
+
"import": "./dist/lock/implementations/adapters/_module-exports.js"
|
|
101
|
+
},
|
|
102
|
+
"./lock/test-utilities": {
|
|
103
|
+
"types": "./dist/lock/implementations/test-utilities/_module-exports.d.ts",
|
|
104
|
+
"import": "./dist/lock/implementations/test-utilities/_module-exports.js"
|
|
105
|
+
},
|
|
106
|
+
"./serde": {
|
|
107
|
+
"types": "./dist/serde/implementations/derivables/_module-exports.d.ts",
|
|
108
|
+
"import": "./dist/serde/implementations/derivables/_module-exports.js"
|
|
109
|
+
},
|
|
110
|
+
"./serde/contracts": {
|
|
111
|
+
"types": "./dist/serde/contracts/_module-exports.d.ts",
|
|
112
|
+
"import": "./dist/serde/contracts/_module-exports.js"
|
|
113
|
+
},
|
|
114
|
+
"./serde/adapters": {
|
|
115
|
+
"types": "./dist/serde/implementations/adapters/_module-exports.d.ts",
|
|
116
|
+
"import": "./dist/serde/implementations/adapters/_module-exports.js"
|
|
117
|
+
},
|
|
118
|
+
"./serde/test-utilities": {
|
|
119
|
+
"types": "./dist/serde/implementations/test-utilities/_module-exports.d.ts",
|
|
120
|
+
"import": "./dist/serde/implementations/test-utilities/_module-exports.js"
|
|
121
|
+
},
|
|
122
|
+
"./utilities": {
|
|
123
|
+
"types": "./dist/utilities/_module-exports.d.ts",
|
|
124
|
+
"import": "./dist/utilities/_module-exports.js"
|
|
68
125
|
}
|
|
69
126
|
},
|
|
70
127
|
"scripts": {
|
|
@@ -74,6 +131,8 @@
|
|
|
74
131
|
"lint": "npx eslint \"**/*.{js,jsx,ts,tsx}\"",
|
|
75
132
|
"lint:fix": "npx eslint \"**/*.{js,jsx,ts,tsx}\" --fix",
|
|
76
133
|
"build": "npx rimraf dist && npx tsc --project \"./tsconfig.build.json\" && npx tsc-alias -p \"./tsconfig.build.json\"",
|
|
134
|
+
"publint": "npm run build && npx publint",
|
|
135
|
+
"check:all": "npm run check && npm run lint && npm run test && npm run publint",
|
|
77
136
|
"docs": "npx typedoc",
|
|
78
137
|
"release": "npm run build && npx changeset publish"
|
|
79
138
|
},
|
|
@@ -98,6 +157,7 @@
|
|
|
98
157
|
"eslint-plugin-vitest": "^0.5.4",
|
|
99
158
|
"ioredis": "^5.4.1",
|
|
100
159
|
"mongodb": "^6.10.0",
|
|
160
|
+
"publint": "^0.3.8",
|
|
101
161
|
"rimraf": "^6.0.1",
|
|
102
162
|
"tsc-alias": "^1.8.10",
|
|
103
163
|
"typedoc": "^0.26.5",
|
|
@@ -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";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_module.js","sourceRoot":"","sources":["../../../../src/utilities/classes/pipeline/_module.ts"],"names":[],"mappings":"AAAA,cAAc,0CAA0C,CAAC"}
|