@oscarpalmer/atoms 0.221.0 → 0.222.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/dist/array/difference.d.mts +1 -3
- package/dist/array/difference.mjs +1 -2
- package/dist/array/exists.d.mts +1 -3
- package/dist/array/exists.mjs +1 -2
- package/dist/array/filter.d.mts +1 -3
- package/dist/array/filter.mjs +1 -2
- package/dist/array/find.d.mts +1 -3
- package/dist/array/find.mjs +1 -2
- package/dist/array/first.d.mts +1 -3
- package/dist/array/first.mjs +1 -2
- package/dist/array/flatten.d.mts +1 -3
- package/dist/array/flatten.mjs +1 -2
- package/dist/array/from.d.mts +1 -3
- package/dist/array/from.mjs +1 -2
- package/dist/array/group-by.d.mts +1 -3
- package/dist/array/group-by.mjs +1 -2
- package/dist/array/insert.d.mts +1 -3
- package/dist/array/insert.mjs +1 -2
- package/dist/array/intersection.d.mts +1 -3
- package/dist/array/intersection.mjs +1 -2
- package/dist/array/last.d.mts +1 -3
- package/dist/array/last.mjs +1 -2
- package/dist/array/move.d.mts +1 -3
- package/dist/array/move.mjs +1 -2
- package/dist/array/partition.d.mts +1 -3
- package/dist/array/partition.mjs +1 -2
- package/dist/array/push.d.mts +0 -2
- package/dist/array/push.mjs +1 -2
- package/dist/array/reverse.d.mts +1 -3
- package/dist/array/reverse.mjs +1 -2
- package/dist/array/select.d.mts +0 -2
- package/dist/array/select.mjs +1 -2
- package/dist/array/single.d.mts +1 -3
- package/dist/array/single.mjs +1 -2
- package/dist/array/slice.d.mts +1 -3
- package/dist/array/slice.mjs +1 -2
- package/dist/array/sort.d.mts +0 -2
- package/dist/array/sort.mjs +1 -2
- package/dist/array/splice.d.mts +1 -3
- package/dist/array/splice.mjs +1 -2
- package/dist/array/swap.d.mts +0 -2
- package/dist/array/swap.mjs +1 -2
- package/dist/array/to-map.d.mts +1 -3
- package/dist/array/to-map.mjs +1 -2
- package/dist/array/to-record.d.mts +1 -3
- package/dist/array/to-record.mjs +1 -2
- package/dist/array/to-set.d.mts +1 -3
- package/dist/array/to-set.mjs +1 -2
- package/dist/array/toggle.d.mts +1 -3
- package/dist/array/toggle.mjs +1 -2
- package/dist/array/union.d.mts +1 -3
- package/dist/array/union.mjs +1 -2
- package/dist/array/unique.d.mts +1 -3
- package/dist/array/unique.mjs +1 -2
- package/dist/array/update.d.mts +1 -3
- package/dist/array/update.mjs +1 -2
- package/dist/beacon.d.mts +0 -2
- package/dist/beacon.mjs +2 -3
- package/dist/color/constants.d.mts +0 -2
- package/dist/color/constants.mjs +1 -2
- package/dist/color/index.d.mts +0 -2
- package/dist/color/index.mjs +1 -2
- package/dist/color/instance.d.mts +1 -3
- package/dist/color/instance.mjs +1 -2
- package/dist/color/misc/alpha.d.mts +1 -3
- package/dist/color/misc/alpha.mjs +1 -2
- package/dist/color/misc/format.d.mts +1 -3
- package/dist/color/misc/format.mjs +1 -2
- package/dist/color/misc/get.d.mts +1 -3
- package/dist/color/misc/get.mjs +1 -2
- package/dist/color/misc/is.d.mts +1 -3
- package/dist/color/misc/is.mjs +1 -2
- package/dist/color/misc/state.d.mts +1 -3
- package/dist/color/misc/state.mjs +1 -2
- package/dist/color/space/hex.d.mts +1 -3
- package/dist/color/space/hex.mjs +1 -2
- package/dist/color/space/hsl.d.mts +1 -3
- package/dist/color/space/hsl.mjs +1 -2
- package/dist/color/space/hwb.d.mts +1 -3
- package/dist/color/space/hwb.mjs +1 -2
- package/dist/color/space/rgb.d.mts +1 -3
- package/dist/color/space/rgb.mjs +1 -2
- package/dist/function/limit.d.mts +0 -2
- package/dist/function/limit.mjs +1 -2
- package/dist/function/once.d.mts +0 -2
- package/dist/function/once.mjs +1 -2
- package/dist/function/retry.d.mts +0 -2
- package/dist/function/retry.mjs +1 -2
- package/dist/index.d.mts +1 -268
- package/dist/index.mjs +166 -331
- package/dist/internal/aborter.d.mts +1 -3
- package/dist/internal/aborter.mjs +1 -2
- package/dist/internal/array/callbacks.d.mts +1 -3
- package/dist/internal/array/callbacks.mjs +1 -2
- package/dist/internal/array/chunk.d.mts +1 -3
- package/dist/internal/array/chunk.mjs +1 -2
- package/dist/internal/array/compact.d.mts +1 -3
- package/dist/internal/array/compact.mjs +1 -2
- package/dist/internal/array/find.d.mts +1 -3
- package/dist/internal/array/find.mjs +1 -2
- package/dist/internal/array/get.d.mts +1 -3
- package/dist/internal/array/get.mjs +1 -2
- package/dist/internal/array/group.d.mts +1 -3
- package/dist/internal/array/group.mjs +1 -2
- package/dist/internal/array/index-of.d.mts +1 -3
- package/dist/internal/array/index-of.mjs +1 -2
- package/dist/internal/array/insert.d.mts +1 -3
- package/dist/internal/array/insert.mjs +1 -2
- package/dist/internal/array/match.d.mts +1 -3
- package/dist/internal/array/match.mjs +1 -2
- package/dist/internal/array/overlap.d.mts +1 -3
- package/dist/internal/array/overlap.mjs +1 -2
- package/dist/internal/array/sets.d.mts +1 -3
- package/dist/internal/array/sets.mjs +1 -2
- package/dist/internal/array/shuffle.d.mts +1 -3
- package/dist/internal/array/shuffle.mjs +1 -2
- package/dist/internal/array/update.d.mts +1 -3
- package/dist/internal/array/update.mjs +1 -2
- package/dist/internal/defaults.d.mts +1 -3
- package/dist/internal/defaults.mjs +1 -2
- package/dist/internal/function/assert.d.mts +0 -2
- package/dist/internal/function/assert.mjs +1 -2
- package/dist/internal/function/limit.d.mts +1 -3
- package/dist/internal/function/limit.mjs +1 -2
- package/dist/internal/function/memoize.d.mts +0 -2
- package/dist/internal/function/memoize.mjs +1 -2
- package/dist/internal/function/misc.d.mts +1 -2
- package/dist/internal/function/misc.mjs +7 -3
- package/dist/internal/function/work.d.mts +0 -2
- package/dist/internal/function/work.mjs +5 -13
- package/dist/internal/herald.d.mts +1 -3
- package/dist/internal/herald.mjs +1 -2
- package/dist/internal/is.d.mts +1 -3
- package/dist/internal/is.mjs +1 -2
- package/dist/internal/math/aggregate.d.mts +1 -3
- package/dist/internal/math/aggregate.mjs +1 -2
- package/dist/internal/math/misc.d.mts +1 -3
- package/dist/internal/math/misc.mjs +1 -2
- package/dist/internal/number.d.mts +1 -3
- package/dist/internal/number.mjs +1 -2
- package/dist/internal/plan/index.d.mts +1 -3
- package/dist/internal/plan/index.mjs +1 -2
- package/dist/internal/plan/plan.generate.d.mts +1 -3
- package/dist/internal/plan/plan.generate.mjs +2 -3
- package/dist/internal/random.d.mts +1 -3
- package/dist/internal/random.mjs +1 -2
- package/dist/internal/result/attempt.d.mts +1 -3
- package/dist/internal/result/attempt.mjs +1 -2
- package/dist/internal/result/misc.d.mts +1 -3
- package/dist/internal/result/misc.mjs +1 -2
- package/dist/internal/sized/map.d.mts +1 -3
- package/dist/internal/sized/map.mjs +1 -2
- package/dist/internal/sized/misc.d.mts +1 -3
- package/dist/internal/sized/misc.mjs +1 -2
- package/dist/internal/string/case.d.mts +1 -3
- package/dist/internal/string/case.mjs +1 -2
- package/dist/internal/string/misc.d.mts +1 -3
- package/dist/internal/string/misc.mjs +2 -3
- package/dist/internal/subscription.d.mts +1 -3
- package/dist/internal/subscription.mjs +1 -2
- package/dist/internal/value/compare.d.mts +1 -3
- package/dist/internal/value/compare.mjs +1 -2
- package/dist/internal/value/equal.d.mts +0 -2
- package/dist/internal/value/equal.mjs +1 -2
- package/dist/internal/value/get.d.mts +1 -3
- package/dist/internal/value/get.mjs +1 -2
- package/dist/internal/value/handlers.d.mts +1 -3
- package/dist/internal/value/handlers.mjs +1 -2
- package/dist/internal/value/has.d.mts +1 -3
- package/dist/internal/value/has.mjs +1 -2
- package/dist/internal/value/misc.d.mts +1 -3
- package/dist/internal/value/misc.mjs +2 -3
- package/dist/internal/value/partial.d.mts +1 -3
- package/dist/internal/value/partial.mjs +1 -2
- package/dist/internal/value/set.d.mts +1 -3
- package/dist/internal/value/set.mjs +1 -2
- package/dist/is.d.mts +0 -2
- package/dist/is.mjs +1 -2
- package/dist/logger.d.mts +0 -2
- package/dist/logger.mjs +1 -2
- package/dist/math.d.mts +0 -2
- package/dist/math.mjs +1 -2
- package/dist/models/aborter.model.d.mts +1 -3
- package/dist/models/aborter.model.mjs +1 -2
- package/dist/models/array/array.find.model.d.mts +1 -3
- package/dist/models/array/array.find.model.mjs +1 -2
- package/dist/models/array/array.match.model.d.mts +1 -3
- package/dist/models/array/array.match.model.mjs +1 -2
- package/dist/models/array/array.misc.model.d.mts +1 -3
- package/dist/models/array/array.misc.model.mjs +1 -2
- package/dist/models/array/array.sort.model.d.mts +1 -3
- package/dist/models/array/array.sort.model.mjs +1 -2
- package/dist/models/beacon.model.d.mts +1 -3
- package/dist/models/beacon.model.mjs +1 -2
- package/dist/models/color.model.d.mts +0 -2
- package/dist/models/function/assert.model.d.mts +1 -3
- package/dist/models/function/assert.model.mjs +1 -2
- package/dist/models/function/limiter.model.d.mts +1 -3
- package/dist/models/function/limiter.model.mjs +1 -2
- package/dist/models/function/memoize.model.d.mts +1 -3
- package/dist/models/function/memoize.model.mjs +1 -2
- package/dist/models/function/once.model.d.mts +0 -2
- package/dist/models/function/once.model.mjs +1 -2
- package/dist/models/function/retry.model.d.mts +1 -3
- package/dist/models/function/retry.model.mjs +1 -2
- package/dist/models/function/work.model.d.mts +1 -3
- package/dist/models/function/work.model.mjs +1 -2
- package/dist/models/herald.model.d.mts +1 -3
- package/dist/models/herald.model.mjs +1 -2
- package/dist/models/index.d.mts +0 -2
- package/dist/models/logger.model.d.mts +1 -3
- package/dist/models/logger.model.mjs +1 -2
- package/dist/models/math.model.d.mts +1 -3
- package/dist/models/math.model.mjs +1 -2
- package/dist/models/misc.model.d.mts +1 -3
- package/dist/models/misc.model.mjs +1 -2
- package/dist/models/plan.model.d.mts +0 -2
- package/dist/models/plan.model.mjs +1 -2
- package/dist/models/promise.model.d.mts +1 -3
- package/dist/models/promise.model.mjs +1 -2
- package/dist/models/query.model.d.mts +1 -3
- package/dist/models/query.model.mjs +1 -2
- package/dist/models/queue.model.d.mts +0 -2
- package/dist/models/queue.model.mjs +1 -2
- package/dist/models/random.model.d.mts +1 -3
- package/dist/models/random.model.mjs +1 -2
- package/dist/models/result.model.d.mts +0 -2
- package/dist/models/string/string.case.model.d.mts +1 -3
- package/dist/models/string/string.case.model.mjs +1 -2
- package/dist/models/string/string.fuzzy.model.d.mts +0 -2
- package/dist/models/string/string.fuzzy.model.mjs +1 -2
- package/dist/models/string/string.misc.model.d.mts +1 -3
- package/dist/models/string/string.misc.model.mjs +1 -2
- package/dist/models/string/string.normalize.model.d.mts +1 -3
- package/dist/models/string/string.normalize.model.mjs +1 -2
- package/dist/models/string/string.template.model.d.mts +1 -3
- package/dist/models/string/string.template.model.mjs +1 -2
- package/dist/models/subscription.model.d.mts +1 -3
- package/dist/models/subscription.model.mjs +1 -2
- package/dist/models/value/value.clone.model.d.mts +1 -3
- package/dist/models/value/value.clone.model.mjs +1 -2
- package/dist/models/value/value.diff.model.d.mts +1 -3
- package/dist/models/value/value.diff.model.mjs +1 -2
- package/dist/models/value/value.equal.model.d.mts +0 -2
- package/dist/models/value/value.equal.model.mjs +1 -2
- package/dist/models/value/value.handler.model.d.mts +1 -3
- package/dist/models/value/value.merge.model.d.mts +0 -2
- package/dist/models/value/value.merge.model.mjs +1 -2
- package/dist/models/value/value.misc.model.d.mts +0 -2
- package/dist/models/value/value.misc.model.mjs +1 -2
- package/dist/models/value/value.transform.model.d.mts +1 -3
- package/dist/models/value/value.transform.model.mjs +1 -2
- package/dist/plan/index.d.mts +1 -3
- package/dist/plan/index.mjs +1 -2
- package/dist/plan/is.d.mts +1 -3
- package/dist/plan/is.mjs +1 -2
- package/dist/plan/misc.d.mts +1 -3
- package/dist/plan/misc.mjs +1 -2
- package/dist/plan/result.d.mts +1 -3
- package/dist/plan/result.mjs +1 -2
- package/dist/plan/run.d.mts +1 -3
- package/dist/plan/run.mjs +1 -2
- package/dist/plan/use.d.mts +1 -3
- package/dist/plan/use.mjs +1 -2
- package/dist/promise/delay.d.mts +1 -3
- package/dist/promise/delay.mjs +1 -2
- package/dist/promise/helpers.d.mts +1 -3
- package/dist/promise/helpers.mjs +1 -2
- package/dist/promise/index.d.mts +0 -2
- package/dist/promise/index.mjs +1 -2
- package/dist/promise/misc.d.mts +0 -2
- package/dist/promise/misc.mjs +1 -2
- package/dist/promise/timed.d.mts +1 -3
- package/dist/promise/timed.mjs +1 -2
- package/dist/query.d.mts +1 -3
- package/dist/query.mjs +1 -2
- package/dist/queue.d.mts +0 -2
- package/dist/queue.mjs +1 -2
- package/dist/random.d.mts +0 -2
- package/dist/random.mjs +1 -2
- package/dist/result/match.d.mts +1 -3
- package/dist/result/match.mjs +1 -2
- package/dist/result/misc.d.mts +0 -2
- package/dist/result/misc.mjs +1 -2
- package/dist/result/work/flow.d.mts +1 -3
- package/dist/result/work/flow.mjs +4 -11
- package/dist/result/work/pipe.d.mts +0 -2
- package/dist/result/work/pipe.mjs +1 -2
- package/dist/sized/set.d.mts +1 -3
- package/dist/sized/set.mjs +1 -2
- package/dist/string/fuzzy.d.mts +0 -2
- package/dist/string/fuzzy.mjs +1 -2
- package/dist/string/index.d.mts +0 -2
- package/dist/string/index.mjs +1 -2
- package/dist/string/match.d.mts +1 -3
- package/dist/string/match.mjs +1 -2
- package/dist/string/normalize.d.mts +0 -2
- package/dist/string/normalize.mjs +1 -2
- package/dist/string/template.d.mts +0 -2
- package/dist/string/template.mjs +1 -2
- package/dist/value/clone.d.mts +0 -2
- package/dist/value/clone.mjs +1 -2
- package/dist/value/collection.d.mts +1 -3
- package/dist/value/collection.mjs +1 -2
- package/dist/value/diff.d.mts +0 -2
- package/dist/value/diff.mjs +1 -2
- package/dist/value/freeze.d.mts +1 -3
- package/dist/value/freeze.mjs +2 -3
- package/dist/value/merge.d.mts +0 -2
- package/dist/value/merge.mjs +1 -2
- package/dist/value/omit.d.mts +1 -3
- package/dist/value/omit.mjs +1 -2
- package/dist/value/pick.d.mts +1 -3
- package/dist/value/pick.mjs +1 -2
- package/dist/value/shake.d.mts +0 -2
- package/dist/value/shake.mjs +1 -2
- package/dist/value/smush.d.mts +0 -2
- package/dist/value/smush.mjs +1 -2
- package/dist/value/transform.d.mts +0 -2
- package/dist/value/transform.mjs +1 -2
- package/dist/value/unsmush.d.mts +0 -2
- package/dist/value/unsmush.mjs +1 -2
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/models/index.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* A generic array or object
|
|
4
3
|
*/
|
|
@@ -124,8 +123,6 @@ export type UnionToIntersection<Union> = (Union extends unknown ? (distributedUn
|
|
|
124
123
|
* A function that unsubscribes from a subscription
|
|
125
124
|
*/
|
|
126
125
|
export type Unsubscriber = () => void;
|
|
127
|
-
//#endregion
|
|
128
|
-
//#region src/array/filter.d.ts
|
|
129
126
|
/**
|
|
130
127
|
* Get a filtered array of items that do not match the value
|
|
131
128
|
*
|
|
@@ -301,8 +298,6 @@ export declare function filter<Item>(array: Item[], item: Item): Item[];
|
|
|
301
298
|
export declare namespace filter {
|
|
302
299
|
export var remove: typeof exclude;
|
|
303
300
|
}
|
|
304
|
-
//#endregion
|
|
305
|
-
//#region src/array/find.d.ts
|
|
306
301
|
/**
|
|
307
302
|
* Get the first item matching the given value
|
|
308
303
|
*
|
|
@@ -478,8 +473,6 @@ export declare function findLast<Item>(array: Item[], value: Item): Item | undef
|
|
|
478
473
|
export declare namespace find {
|
|
479
474
|
export var last: typeof findLast;
|
|
480
475
|
}
|
|
481
|
-
//#endregion
|
|
482
|
-
//#region src/array/first.d.ts
|
|
483
476
|
/**
|
|
484
477
|
* Get the first item matching the given value
|
|
485
478
|
*
|
|
@@ -664,8 +657,6 @@ export declare function firstOrDefault<Item>(array: Item[], defaultValue: Item):
|
|
|
664
657
|
export declare namespace first {
|
|
665
658
|
export var defaulted: typeof firstOrDefault;
|
|
666
659
|
}
|
|
667
|
-
//#endregion
|
|
668
|
-
//#region src/array/group-by.d.ts
|
|
669
660
|
/**
|
|
670
661
|
* Create a record from an array of items using a specific key
|
|
671
662
|
*
|
|
@@ -765,8 +756,6 @@ export declare function groupArraysBy<Item, KeyArg extends KeyOrCallback<Item, K
|
|
|
765
756
|
export declare namespace groupBy {
|
|
766
757
|
export var arrays: typeof groupArraysBy;
|
|
767
758
|
}
|
|
768
|
-
//#endregion
|
|
769
|
-
//#region src/internal/array/chunk.d.ts
|
|
770
759
|
/**
|
|
771
760
|
* Chunk an array into smaller arrays
|
|
772
761
|
*
|
|
@@ -780,8 +769,6 @@ export declare namespace groupBy {
|
|
|
780
769
|
* ```
|
|
781
770
|
*/
|
|
782
771
|
export declare function chunk<Item>(array: Item[], size?: number): Item[][];
|
|
783
|
-
//#endregion
|
|
784
|
-
//#region src/internal/array/compact.d.ts
|
|
785
772
|
/**
|
|
786
773
|
* Compact an array _(removing all false-y values)_
|
|
787
774
|
*
|
|
@@ -807,8 +794,6 @@ export declare function compact<Item>(array: Item[], strict: true): Array<Exclud
|
|
|
807
794
|
* ```
|
|
808
795
|
*/
|
|
809
796
|
export declare function compact<Item>(array: Item[]): Array<Exclude<Item, null | undefined>>;
|
|
810
|
-
//#endregion
|
|
811
|
-
//#region src/internal/array/get.d.ts
|
|
812
797
|
/**
|
|
813
798
|
* Get an array from an object, where only values with numerical keys will be included
|
|
814
799
|
*
|
|
@@ -885,15 +870,11 @@ export declare function getArray<Item>(value: Item[]): Item[];
|
|
|
885
870
|
* ```
|
|
886
871
|
*/
|
|
887
872
|
export declare function getArray<Value>(value: Value): Value[];
|
|
888
|
-
//#endregion
|
|
889
|
-
//#region src/models/array/array.misc.model.d.ts
|
|
890
873
|
/**
|
|
891
874
|
* Comparison of an array within another array
|
|
892
875
|
*/
|
|
893
876
|
type ArrayComparison = "end" | "inside" | "invalid" | "outside" | "same" | "start";
|
|
894
877
|
type ArrayFlattened<Value> = Value extends ReadonlyArray<infer Inner> ? Inner : Value;
|
|
895
|
-
//#endregion
|
|
896
|
-
//#region src/internal/array/match.d.ts
|
|
897
878
|
/**
|
|
898
879
|
* Is the needle array at the end of the haystack array?
|
|
899
880
|
*
|
|
@@ -1139,8 +1120,6 @@ export declare function startsWithArray<Item extends PlainObject>(haystack: Item
|
|
|
1139
1120
|
* ```
|
|
1140
1121
|
*/
|
|
1141
1122
|
export declare function startsWithArray<Item>(haystack: Item[], needle: Item[]): boolean;
|
|
1142
|
-
//#endregion
|
|
1143
|
-
//#region src/internal/array/shuffle.d.ts
|
|
1144
1123
|
/**
|
|
1145
1124
|
* Shuffle items in array
|
|
1146
1125
|
*
|
|
@@ -1153,8 +1132,6 @@ export declare function startsWithArray<Item>(haystack: Item[], needle: Item[]):
|
|
|
1153
1132
|
* ```
|
|
1154
1133
|
*/
|
|
1155
1134
|
export declare function shuffle<Item>(array: Item[]): Item[];
|
|
1156
|
-
//#endregion
|
|
1157
|
-
//#region src/array/difference.d.ts
|
|
1158
1135
|
/**
|
|
1159
1136
|
* Get the items from the first array that are not in the second array
|
|
1160
1137
|
*
|
|
@@ -1207,8 +1184,6 @@ export declare function difference<First extends PlainObject, Second extends Pla
|
|
|
1207
1184
|
* ```
|
|
1208
1185
|
*/
|
|
1209
1186
|
export declare function difference<First, Second>(first: First[], second: Second[]): First[];
|
|
1210
|
-
//#endregion
|
|
1211
|
-
//#region src/array/exists.d.ts
|
|
1212
1187
|
/**
|
|
1213
1188
|
* Does an item with a specific value exist in the array?
|
|
1214
1189
|
*
|
|
@@ -1274,8 +1249,6 @@ export declare function exists<Item>(array: Item[], filter: (item: Item, index:
|
|
|
1274
1249
|
* ```
|
|
1275
1250
|
*/
|
|
1276
1251
|
export declare function exists<Item>(array: Item[], item: Item): boolean;
|
|
1277
|
-
//#endregion
|
|
1278
|
-
//#region src/array/flatten.d.ts
|
|
1279
1252
|
/**
|
|
1280
1253
|
* Flatten an array _(using native `flat` and maximum depth)_
|
|
1281
1254
|
*
|
|
@@ -1288,8 +1261,6 @@ export declare function exists<Item>(array: Item[], item: Item): boolean;
|
|
|
1288
1261
|
* ```
|
|
1289
1262
|
*/
|
|
1290
1263
|
export declare function flatten<Item>(array: Item[]): Array<NestedArray<Item>>;
|
|
1291
|
-
//#endregion
|
|
1292
|
-
//#region src/array/from.d.ts
|
|
1293
1264
|
/**
|
|
1294
1265
|
* Get an array with a specified length, filled with indices
|
|
1295
1266
|
*
|
|
@@ -1367,8 +1338,6 @@ export declare function times<Callback extends (index: number) => unknown>(lengt
|
|
|
1367
1338
|
* ```
|
|
1368
1339
|
*/
|
|
1369
1340
|
export declare function times<Value>(length: number, value: Value): Value[];
|
|
1370
|
-
//#endregion
|
|
1371
|
-
//#region src/array/insert.d.ts
|
|
1372
1341
|
/**
|
|
1373
1342
|
* Insert items into an array at a specified index
|
|
1374
1343
|
*
|
|
@@ -1400,8 +1369,6 @@ export declare function insert<Item>(array: Item[], index: number, items: Item[]
|
|
|
1400
1369
|
* ```
|
|
1401
1370
|
*/
|
|
1402
1371
|
export declare function insert<Item>(array: Item[], items: Item[]): Item[];
|
|
1403
|
-
//#endregion
|
|
1404
|
-
//#region src/array/intersection.d.ts
|
|
1405
1372
|
/**
|
|
1406
1373
|
* Get the common values between two arrays
|
|
1407
1374
|
*
|
|
@@ -1454,8 +1421,6 @@ export declare function intersection<First extends Record<string, unknown>, Seco
|
|
|
1454
1421
|
* ```
|
|
1455
1422
|
*/
|
|
1456
1423
|
export declare function intersection<First, Second>(first: First[], second: Second[]): First[];
|
|
1457
|
-
//#endregion
|
|
1458
|
-
//#region src/array/partition.d.ts
|
|
1459
1424
|
/**
|
|
1460
1425
|
* Get a partitioned array of items
|
|
1461
1426
|
*
|
|
@@ -1537,8 +1502,6 @@ export declare function partition<Item>(array: Item[], filter: (item: Item, inde
|
|
|
1537
1502
|
* ```
|
|
1538
1503
|
*/
|
|
1539
1504
|
export declare function partition<Item>(array: Item[], item: Item): [Item[], Item[]];
|
|
1540
|
-
//#endregion
|
|
1541
|
-
//#region src/array/push.d.ts
|
|
1542
1505
|
/**
|
|
1543
1506
|
* Push items into an array _(at the end)_
|
|
1544
1507
|
*
|
|
@@ -1554,8 +1517,6 @@ export declare function partition<Item>(array: Item[], item: Item): [Item[], Ite
|
|
|
1554
1517
|
* ```
|
|
1555
1518
|
*/
|
|
1556
1519
|
export declare function push<Item>(array: Item[], pushed: Item[]): number;
|
|
1557
|
-
//#endregion
|
|
1558
|
-
//#region src/array/reverse.d.ts
|
|
1559
1520
|
/**
|
|
1560
1521
|
* Reverse the order of items in an array
|
|
1561
1522
|
*
|
|
@@ -1569,8 +1530,6 @@ export declare function push<Item>(array: Item[], pushed: Item[]): number;
|
|
|
1569
1530
|
* ```
|
|
1570
1531
|
*/
|
|
1571
1532
|
export declare function reverse<Item>(array: Item[]): Item[];
|
|
1572
|
-
//#endregion
|
|
1573
|
-
//#region src/array/single.d.ts
|
|
1574
1533
|
/**
|
|
1575
1534
|
* Get the _only_ item matching the given value
|
|
1576
1535
|
*
|
|
@@ -1651,8 +1610,6 @@ export declare function single<Item, Narrowed extends Item>(array: Item[], filte
|
|
|
1651
1610
|
* ```
|
|
1652
1611
|
*/
|
|
1653
1612
|
export declare function single<Item>(array: Item[], filter: (item: Item, index: number, array: Item[]) => boolean): Item | undefined;
|
|
1654
|
-
//#endregion
|
|
1655
|
-
//#region src/array/slice.d.ts
|
|
1656
1613
|
/**
|
|
1657
1614
|
* Drop items from the start of an array until they match a value
|
|
1658
1615
|
*
|
|
@@ -1824,8 +1781,6 @@ export declare function take<Item extends PlainObject>(array: Item[], callback:
|
|
|
1824
1781
|
* ```
|
|
1825
1782
|
*/
|
|
1826
1783
|
export declare function take(array: unknown[], count: number): unknown[];
|
|
1827
|
-
//#endregion
|
|
1828
|
-
//#region src/array/splice.d.ts
|
|
1829
1784
|
/**
|
|
1830
1785
|
* Adds items into an array at a specific index and removes a specific amount of items
|
|
1831
1786
|
*
|
|
@@ -1906,8 +1861,6 @@ export declare function splice<Item>(array: Item[], start: number, amount: numbe
|
|
|
1906
1861
|
* ```
|
|
1907
1862
|
*/
|
|
1908
1863
|
export declare function splice<Item>(array: Item[], start: number): Item[];
|
|
1909
|
-
//#endregion
|
|
1910
|
-
//#region src/array/to-set.d.ts
|
|
1911
1864
|
/**
|
|
1912
1865
|
* Create a _Set_ from an array of items using a callback
|
|
1913
1866
|
*
|
|
@@ -1952,8 +1905,6 @@ export declare function toSet<Item extends PlainObject, ItemKey extends keyof It
|
|
|
1952
1905
|
* ```
|
|
1953
1906
|
*/
|
|
1954
1907
|
export declare function toSet<Item>(array: Item[]): Set<Item>;
|
|
1955
|
-
//#endregion
|
|
1956
|
-
//#region src/array/toggle.d.ts
|
|
1957
1908
|
/**
|
|
1958
1909
|
* Toggle an item in an array
|
|
1959
1910
|
*
|
|
@@ -2012,8 +1963,6 @@ export declare function toggle<Item extends PlainObject, ItemKey extends keyof I
|
|
|
2012
1963
|
* ```
|
|
2013
1964
|
*/
|
|
2014
1965
|
export declare function toggle<Item>(destination: Item[], toggled: Item[]): Item[];
|
|
2015
|
-
//#endregion
|
|
2016
|
-
//#region src/array/union.d.ts
|
|
2017
1966
|
/**
|
|
2018
1967
|
* Get the combined, unique values from two arrays
|
|
2019
1968
|
*
|
|
@@ -2066,8 +2015,6 @@ export declare function union<First extends Record<string, unknown>, Second exte
|
|
|
2066
2015
|
* ```
|
|
2067
2016
|
*/
|
|
2068
2017
|
export declare function union<First, Second>(first: First[], second: Second[]): (First | Second)[];
|
|
2069
|
-
//#endregion
|
|
2070
|
-
//#region src/array/unique.d.ts
|
|
2071
2018
|
/**
|
|
2072
2019
|
* Get an array of unique items
|
|
2073
2020
|
*
|
|
@@ -2112,8 +2059,6 @@ export declare function unique<Item extends PlainObject, ItemKey extends keyof I
|
|
|
2112
2059
|
* ```
|
|
2113
2060
|
*/
|
|
2114
2061
|
export declare function unique<Item>(array: Item[]): Item[];
|
|
2115
|
-
//#endregion
|
|
2116
|
-
//#region src/array/update.d.ts
|
|
2117
2062
|
/**
|
|
2118
2063
|
* Update an item in an array
|
|
2119
2064
|
*
|
|
@@ -2172,8 +2117,6 @@ export declare function update<Item extends PlainObject, ItemKey extends keyof I
|
|
|
2172
2117
|
* ```
|
|
2173
2118
|
*/
|
|
2174
2119
|
export declare function update<Item>(destination: Item[], updated: Item[]): Item[];
|
|
2175
|
-
//#endregion
|
|
2176
|
-
//#region src/array/last.d.ts
|
|
2177
2120
|
/**
|
|
2178
2121
|
* Get the last item matching the given value
|
|
2179
2122
|
*
|
|
@@ -2356,8 +2299,6 @@ export declare function lastOrDefault<Item>(array: Item[], defaultValue: Item):
|
|
|
2356
2299
|
export declare namespace last {
|
|
2357
2300
|
export var defaulted: typeof lastOrDefault;
|
|
2358
2301
|
}
|
|
2359
|
-
//#endregion
|
|
2360
|
-
//#region src/array/move.d.ts
|
|
2361
2302
|
/**
|
|
2362
2303
|
* Move an item _(or array of items)_ to the position of another item _(or array of items)_ within an array
|
|
2363
2304
|
*
|
|
@@ -2520,8 +2461,6 @@ export declare namespace move {
|
|
|
2520
2461
|
export var indices: typeof moveIndices;
|
|
2521
2462
|
export var toIndex: typeof moveToIndex;
|
|
2522
2463
|
}
|
|
2523
|
-
//#endregion
|
|
2524
|
-
//#region src/array/select.d.ts
|
|
2525
2464
|
/**
|
|
2526
2465
|
* Get a narrowed, mapped, and flattened array of items
|
|
2527
2466
|
*
|
|
@@ -2689,8 +2628,6 @@ export declare namespace filterAndMap {
|
|
|
2689
2628
|
export declare namespace mapAndFilter {
|
|
2690
2629
|
export var flat: typeof flatMapAndFilter;
|
|
2691
2630
|
}
|
|
2692
|
-
//#endregion
|
|
2693
|
-
//#region src/models/array/array.sort.model.d.ts
|
|
2694
2631
|
/**
|
|
2695
2632
|
* Sorting information for arrays _(using a comparison callback)_
|
|
2696
2633
|
*/
|
|
@@ -2803,8 +2740,6 @@ type Sorter<Item> = {
|
|
|
2803
2740
|
};
|
|
2804
2741
|
export declare const SORT_DIRECTION_ASCENDING: SortDirection;
|
|
2805
2742
|
export declare const SORT_DIRECTION_DESCENDING: SortDirection;
|
|
2806
|
-
//#endregion
|
|
2807
|
-
//#region src/array/sort.d.ts
|
|
2808
2743
|
declare function Sorter(this: any, sorters: SortHandler[]): void;
|
|
2809
2744
|
/**
|
|
2810
2745
|
* Get the index for an item _(to be inserted into an array of items)_ based on sorters _(and an optional default direction)_
|
|
@@ -3010,8 +2945,6 @@ export declare namespace sort {
|
|
|
3010
2945
|
export var initialize: typeof initializeSorter;
|
|
3011
2946
|
export var is: typeof isSorted;
|
|
3012
2947
|
}
|
|
3013
|
-
//#endregion
|
|
3014
|
-
//#region src/array/swap.d.ts
|
|
3015
2948
|
/**
|
|
3016
2949
|
* Swap two smaller arrays within a larger array
|
|
3017
2950
|
*
|
|
@@ -3194,8 +3127,6 @@ declare function swapIndices<Item>(array: Item[], first: number, second: number)
|
|
|
3194
3127
|
export declare namespace swap {
|
|
3195
3128
|
export var indices: typeof swapIndices;
|
|
3196
3129
|
}
|
|
3197
|
-
//#endregion
|
|
3198
|
-
//#region src/array/to-map.d.ts
|
|
3199
3130
|
/**
|
|
3200
3131
|
* Create a _Map_ from an array of items using a specific key
|
|
3201
3132
|
*
|
|
@@ -3289,8 +3220,6 @@ export declare function toMapArrays<Item, KeyArg extends KeyOrCallback<Item, Key
|
|
|
3289
3220
|
export declare namespace toMap {
|
|
3290
3221
|
export var arrays: typeof toMapArrays;
|
|
3291
3222
|
}
|
|
3292
|
-
//#endregion
|
|
3293
|
-
//#region src/array/to-record.d.ts
|
|
3294
3223
|
/**
|
|
3295
3224
|
* Create a record from an array of items using a specific key
|
|
3296
3225
|
*
|
|
@@ -3384,14 +3313,11 @@ export declare function toRecordArrays<Item, KeyArg extends KeyOrCallback<Item,
|
|
|
3384
3313
|
export declare namespace toRecord {
|
|
3385
3314
|
export var arrays: typeof toRecordArrays;
|
|
3386
3315
|
}
|
|
3387
|
-
//#endregion
|
|
3388
|
-
//#region src/internal/function/misc.d.ts
|
|
3389
3316
|
/**
|
|
3390
3317
|
* A function that does nothing, which can be useful, I guess…
|
|
3391
3318
|
*/
|
|
3392
3319
|
export declare function noop(): void;
|
|
3393
|
-
|
|
3394
|
-
//#region src/models/function/limiter.model.d.ts
|
|
3320
|
+
export declare function unwrapWork(value: unknown): unknown;
|
|
3395
3321
|
/**
|
|
3396
3322
|
* An asynchronous function that can be cancelled
|
|
3397
3323
|
*/
|
|
@@ -3424,8 +3350,6 @@ type Limiter<Callback extends GenericCallback> = {
|
|
|
3424
3350
|
*/
|
|
3425
3351
|
run(...parameters: Parameters<Callback>): ReturnType<Callback>;
|
|
3426
3352
|
};
|
|
3427
|
-
//#endregion
|
|
3428
|
-
//#region src/function/limit.d.ts
|
|
3429
3353
|
/**
|
|
3430
3354
|
* Debounce a function, ensuring it is only called after `time` milliseconds have passed
|
|
3431
3355
|
*
|
|
@@ -3476,8 +3400,6 @@ export declare namespace debounce {
|
|
|
3476
3400
|
export declare namespace throttle {
|
|
3477
3401
|
export var async: typeof asyncThrottle;
|
|
3478
3402
|
}
|
|
3479
|
-
//#endregion
|
|
3480
|
-
//#region src/models/function/once.model.d.ts
|
|
3481
3403
|
/**
|
|
3482
3404
|
* An asynchronous function that can only be called once, returning the same value on subsequent calls
|
|
3483
3405
|
*/
|
|
@@ -3524,8 +3446,6 @@ type OnceProperties = {
|
|
|
3524
3446
|
*/
|
|
3525
3447
|
clear(): void;
|
|
3526
3448
|
};
|
|
3527
|
-
//#endregion
|
|
3528
|
-
//#region src/function/once.d.ts
|
|
3529
3449
|
declare function AsyncOnce(this: any, callback: GenericAsyncCallback): void;
|
|
3530
3450
|
declare function Once(this: any, callback: GenericCallback): void;
|
|
3531
3451
|
/**
|
|
@@ -3566,8 +3486,6 @@ export declare namespace once {
|
|
|
3566
3486
|
export var is: typeof isOnce;
|
|
3567
3487
|
export var isAsync: typeof isAsyncOnce;
|
|
3568
3488
|
}
|
|
3569
|
-
//#endregion
|
|
3570
|
-
//#region src/models/function/retry.model.d.ts
|
|
3571
3489
|
/**
|
|
3572
3490
|
* An error thrown when a retry fails
|
|
3573
3491
|
*/
|
|
@@ -3580,8 +3498,6 @@ type RetryOptions = {
|
|
|
3580
3498
|
times?: number;
|
|
3581
3499
|
when?: (error: unknown) => boolean;
|
|
3582
3500
|
};
|
|
3583
|
-
//#endregion
|
|
3584
|
-
//#region src/function/retry.d.ts
|
|
3585
3501
|
/**
|
|
3586
3502
|
* Retry a callback a specified number of times, with a delay between attempts
|
|
3587
3503
|
*
|
|
@@ -3613,8 +3529,6 @@ export declare function retry<Callback extends GenericCallback>(callback: Callba
|
|
|
3613
3529
|
export declare namespace retry {
|
|
3614
3530
|
export var async: typeof asyncRetry;
|
|
3615
3531
|
}
|
|
3616
|
-
//#endregion
|
|
3617
|
-
//#region src/internal/array/index-of.d.ts
|
|
3618
3532
|
/**
|
|
3619
3533
|
* Get the index of the first matching item by callback
|
|
3620
3534
|
*
|
|
@@ -3756,15 +3670,11 @@ export declare function lastIndexOf<Item>(array: Item[], item: Item): number;
|
|
|
3756
3670
|
export declare namespace indexOf {
|
|
3757
3671
|
export var last: typeof lastIndexOf;
|
|
3758
3672
|
}
|
|
3759
|
-
//#endregion
|
|
3760
|
-
//#region src/models/function/assert.model.d.ts
|
|
3761
3673
|
type AssertNestedPick<Value, Path extends string> = Value extends PlainObject ? Path extends `${infer Head}.${infer Rest}` ? Head extends keyof Value ? { [Key in Head]: AssertNestedPick<Value[Key], Rest>; } : never : Path extends keyof Value ? { [Key in Path]: Value[Key]; } : never : never;
|
|
3762
3674
|
/**
|
|
3763
3675
|
* A function that asserts a value is of a specific type, throwing an error if it is not
|
|
3764
3676
|
*/
|
|
3765
3677
|
type Asserter<Value> = (value: unknown) => asserts value is Value;
|
|
3766
|
-
//#endregion
|
|
3767
|
-
//#region src/internal/function/assert.d.ts
|
|
3768
3678
|
/**
|
|
3769
3679
|
* Asserts that a condition is true, throwing an error if it is not
|
|
3770
3680
|
*
|
|
@@ -3835,8 +3745,6 @@ export declare namespace assert {
|
|
|
3835
3745
|
export var is: typeof assertIs;
|
|
3836
3746
|
export var property: typeof assertProperty;
|
|
3837
3747
|
}
|
|
3838
|
-
//#endregion
|
|
3839
|
-
//#region src/internal/sized/map.d.ts
|
|
3840
3748
|
/**
|
|
3841
3749
|
* A _Map_ with a maximum size
|
|
3842
3750
|
*
|
|
@@ -3883,8 +3791,6 @@ export declare class SizedMap<SizedKey = unknown, SizedValue = unknown> extends
|
|
|
3883
3791
|
*/
|
|
3884
3792
|
override set(key: SizedKey, value: SizedValue): this;
|
|
3885
3793
|
}
|
|
3886
|
-
//#endregion
|
|
3887
|
-
//#region src/models/function/memoize.model.d.ts
|
|
3888
3794
|
/**
|
|
3889
3795
|
* A _Memoized_ function instance, caching and retrieving results based on the its parameters _(or a custom cache key)_
|
|
3890
3796
|
*/
|
|
@@ -3957,8 +3863,6 @@ type MemoizedStateOptions = {
|
|
|
3957
3863
|
cacheKey?: GenericCallback;
|
|
3958
3864
|
cacheSize: number;
|
|
3959
3865
|
};
|
|
3960
|
-
//#endregion
|
|
3961
|
-
//#region src/internal/function/memoize.d.ts
|
|
3962
3866
|
declare function Memoized(this: any, callback: GenericCallback, options: MemoizedStateOptions): void;
|
|
3963
3867
|
/**
|
|
3964
3868
|
* Memoize a function, caching and retrieving results based on the first parameter
|
|
@@ -3968,8 +3872,6 @@ declare function Memoized(this: any, callback: GenericCallback, options: Memoize
|
|
|
3968
3872
|
* @returns _Memoized_ instance
|
|
3969
3873
|
*/
|
|
3970
3874
|
export declare function memoize<Callback extends GenericCallback>(callback: Callback, options?: MemoizedOptions<Callback>): Memoized<Callback>;
|
|
3971
|
-
//#endregion
|
|
3972
|
-
//#region src/models/result.model.d.ts
|
|
3973
3875
|
/**
|
|
3974
3876
|
* An unknown result
|
|
3975
3877
|
*/
|
|
@@ -4038,8 +3940,6 @@ type UnwrapResult<Original extends Result<unknown, unknown>> = Original extends
|
|
|
4038
3940
|
* Unwrap any value
|
|
4039
3941
|
*/
|
|
4040
3942
|
export type UnwrapValue<Original> = Original extends GenericCallback ? ReturnType<Original> extends Result<unknown, unknown> ? UnwrapResult<ReturnType<Original>> : ReturnType<Original> : Original extends Result<unknown, unknown> ? UnwrapResult<Original> : Original extends Promise<infer Value> ? Awaited<Value> : Original;
|
|
4041
|
-
//#endregion
|
|
4042
|
-
//#region src/models/function/work.model.d.ts
|
|
4043
3943
|
/**
|
|
4044
3944
|
* An asynchronous _Flow_, a function that pipes a value through a series of functions
|
|
4045
3945
|
*/
|
|
@@ -4048,8 +3948,6 @@ type AsyncFlow<Callback extends GenericCallback, Value> = (...args: Parameters<C
|
|
|
4048
3948
|
* A synchronous _Flow_, a function that pipe a value through a series of functions
|
|
4049
3949
|
*/
|
|
4050
3950
|
type Flow<Callback extends GenericCallback, Value> = (...args: Parameters<Callback>) => UnwrapValue<Value>;
|
|
4051
|
-
//#endregion
|
|
4052
|
-
//#region src/internal/function/work.d.ts
|
|
4053
3951
|
/**
|
|
4054
3952
|
* Create an asynchronous _Flow_, a function that pipes values through a function
|
|
4055
3953
|
*
|
|
@@ -4416,16 +4314,12 @@ export declare namespace flow {
|
|
|
4416
4314
|
export declare namespace pipe {
|
|
4417
4315
|
export var async: typeof asyncPipe;
|
|
4418
4316
|
}
|
|
4419
|
-
//#endregion
|
|
4420
|
-
//#region src/models/string/string.case.model.d.ts
|
|
4421
4317
|
type StringCase = "camel" | "capitalize" | "kebab" | "lower" | "pascal" | "snake" | "title" | "upper";
|
|
4422
4318
|
type StringCaseOptions = {
|
|
4423
4319
|
capitalizeAny: boolean;
|
|
4424
4320
|
capitalizeFirst: boolean;
|
|
4425
4321
|
type: StringCase;
|
|
4426
4322
|
};
|
|
4427
|
-
//#endregion
|
|
4428
|
-
//#region src/internal/string/case.d.ts
|
|
4429
4323
|
/**
|
|
4430
4324
|
* Convert a string to camel case _(thisIsCamelCase)_
|
|
4431
4325
|
*
|
|
@@ -4546,8 +4440,6 @@ export declare function toCaseCallback(this: StringCaseOptions, value: string):
|
|
|
4546
4440
|
* ```
|
|
4547
4441
|
*/
|
|
4548
4442
|
export declare function upperCase(value: string): string;
|
|
4549
|
-
//#endregion
|
|
4550
|
-
//#region src/internal/string/misc.d.ts
|
|
4551
4443
|
/**
|
|
4552
4444
|
* Get the string value from any value
|
|
4553
4445
|
*
|
|
@@ -4607,8 +4499,6 @@ export declare function tryEncode(value: boolean | number | string): unknown;
|
|
|
4607
4499
|
* @returns Array of words found in the string
|
|
4608
4500
|
*/
|
|
4609
4501
|
export declare function words(value: string): string[];
|
|
4610
|
-
//#endregion
|
|
4611
|
-
//#region src/models/value/value.handler.model.d.ts
|
|
4612
4502
|
type BaseHandler = {
|
|
4613
4503
|
handlers: WeakMap<WeakKey, string | GenericCallback>;
|
|
4614
4504
|
options: BaseHandlerOptions;
|
|
@@ -4629,8 +4519,6 @@ type ValueHandler = {
|
|
|
4629
4519
|
base: BaseHandler;
|
|
4630
4520
|
handle(value: unknown, ...parameters: unknown[]): unknown;
|
|
4631
4521
|
};
|
|
4632
|
-
//#endregion
|
|
4633
|
-
//#region src/models/value/value.misc.model.d.ts
|
|
4634
4522
|
type ComparisonHandler<Value = any> = (first: Value, second: Value) => number;
|
|
4635
4523
|
/**
|
|
4636
4524
|
* Thanks, type-fest!
|
|
@@ -4648,8 +4536,6 @@ type Smushed<Value extends PlainObject> = Simplify<{ [NestedKey in NestedKeys<Va
|
|
|
4648
4536
|
* An unsmushed object, with all dot notation keys turned into nested keys
|
|
4649
4537
|
*/
|
|
4650
4538
|
type Unsmushed<Value extends PlainObject> = Simplify<Omit<{ [UnionKey in KeysOfUnion<Value>]: Value[UnionKey]; }, `${string}.${string}`>>;
|
|
4651
|
-
//#endregion
|
|
4652
|
-
//#region src/internal/value/compare.d.ts
|
|
4653
4539
|
/**
|
|
4654
4540
|
* Compare two values _(for sorting purposes)_
|
|
4655
4541
|
*
|
|
@@ -4680,8 +4566,6 @@ export declare namespace compare {
|
|
|
4680
4566
|
export var handler: CompareHandler<number>;
|
|
4681
4567
|
export var register: typeof registerComparator;
|
|
4682
4568
|
}
|
|
4683
|
-
//#endregion
|
|
4684
|
-
//#region src/models/value/value.equal.model.d.ts
|
|
4685
4569
|
/**
|
|
4686
4570
|
* Options for value equality comparison
|
|
4687
4571
|
*/
|
|
@@ -4746,8 +4630,6 @@ type EqualizerOptionsKeys<Values> = {
|
|
|
4746
4630
|
enabled: boolean;
|
|
4747
4631
|
values: Values;
|
|
4748
4632
|
};
|
|
4749
|
-
//#endregion
|
|
4750
|
-
//#region src/internal/value/equal.d.ts
|
|
4751
4633
|
declare function Equalizer(this: any, options: EqualizerOptions): void;
|
|
4752
4634
|
/**
|
|
4753
4635
|
* Deregister a equality comparison handler for a specific class
|
|
@@ -4799,8 +4681,6 @@ export declare namespace equal {
|
|
|
4799
4681
|
export var initialize: typeof initializeEqualizer;
|
|
4800
4682
|
export var register: typeof registerEqualizer;
|
|
4801
4683
|
}
|
|
4802
|
-
//#endregion
|
|
4803
|
-
//#region src/internal/value/get.d.ts
|
|
4804
4684
|
/**
|
|
4805
4685
|
* Get the value from an object using a known path
|
|
4806
4686
|
*
|
|
@@ -4838,8 +4718,6 @@ export declare function getValue<Data extends PlainObject, Path extends NestedKe
|
|
|
4838
4718
|
* ```
|
|
4839
4719
|
*/
|
|
4840
4720
|
export declare function getValue<Data extends PlainObject>(data: Data, path: string, ignoreCase?: boolean): unknown;
|
|
4841
|
-
//#endregion
|
|
4842
|
-
//#region src/internal/value/has.d.ts
|
|
4843
4721
|
/**
|
|
4844
4722
|
* Check if a property is defined in an object
|
|
4845
4723
|
*
|
|
@@ -4922,8 +4800,6 @@ export declare function hasValueResult<Data extends PlainObject>(data: Data, pat
|
|
|
4922
4800
|
export declare namespace hasValue {
|
|
4923
4801
|
export var get: typeof hasValueResult;
|
|
4924
4802
|
}
|
|
4925
|
-
//#endregion
|
|
4926
|
-
//#region src/internal/value/set.d.ts
|
|
4927
4803
|
/**
|
|
4928
4804
|
* Update the value in an object using a known path
|
|
4929
4805
|
*
|
|
@@ -4973,8 +4849,6 @@ export declare function setValue<Data extends PlainObject, Path extends NestedKe
|
|
|
4973
4849
|
* ```
|
|
4974
4850
|
*/
|
|
4975
4851
|
export declare function setValue<Data extends PlainObject>(data: Data, path: string, value: unknown, ignoreCase?: boolean): Data;
|
|
4976
|
-
//#endregion
|
|
4977
|
-
//#region src/models/plan.model.d.ts
|
|
4978
4852
|
/**
|
|
4979
4853
|
* An immediately failing asynchronous plan
|
|
4980
4854
|
*/
|
|
@@ -5140,8 +5014,6 @@ type Success<Value> = {
|
|
|
5140
5014
|
*/
|
|
5141
5015
|
[Symbol.iterator]: () => Generator<never, Value>;
|
|
5142
5016
|
};
|
|
5143
|
-
//#endregion
|
|
5144
|
-
//#region src/plan/index.d.ts
|
|
5145
5017
|
/**
|
|
5146
5018
|
* Create a plan for an asynchronous generator function
|
|
5147
5019
|
*
|
|
@@ -5156,8 +5028,6 @@ export declare function plan<Yielded, Returned, Parameters extends unknown[]>(ge
|
|
|
5156
5028
|
* @returns Generator plan
|
|
5157
5029
|
*/
|
|
5158
5030
|
export declare function plan<Yielded, Returned, Parameters extends unknown[]>(generator: (...parameters: Parameters) => Generator<Yielded, Returned>): Plan<Yielded, Returned, Parameters>;
|
|
5159
|
-
//#endregion
|
|
5160
|
-
//#region src/plan/is.d.ts
|
|
5161
5031
|
/**
|
|
5162
5032
|
* Is the value an asynchronous, immediately failing plan?
|
|
5163
5033
|
*
|
|
@@ -5242,8 +5112,6 @@ export declare function isStep<Value = unknown>(value: unknown): value is Step<V
|
|
|
5242
5112
|
* @returns `true` if the value is an immediately successful plan, otherwise `false`
|
|
5243
5113
|
*/
|
|
5244
5114
|
export declare function isSuccess<Value = unknown>(value: unknown): value is Success<Value>;
|
|
5245
|
-
//#endregion
|
|
5246
|
-
//#region src/plan/misc.d.ts
|
|
5247
5115
|
/**
|
|
5248
5116
|
* Create an immediately failing plan
|
|
5249
5117
|
*
|
|
@@ -5306,8 +5174,6 @@ export declare namespace fail {
|
|
|
5306
5174
|
export declare namespace succeed {
|
|
5307
5175
|
export var async: typeof asyncSucceed;
|
|
5308
5176
|
}
|
|
5309
|
-
//#endregion
|
|
5310
|
-
//#region src/plan/result.d.ts
|
|
5311
5177
|
/**
|
|
5312
5178
|
* Attempt to run the generator to completion
|
|
5313
5179
|
*
|
|
@@ -5373,8 +5239,6 @@ export declare function attemptRun<Yielded, Returned, Parameters extends unknown
|
|
|
5373
5239
|
export declare namespace attemptRun {
|
|
5374
5240
|
export var async: typeof asyncAttemptRun;
|
|
5375
5241
|
}
|
|
5376
|
-
//#endregion
|
|
5377
|
-
//#region src/plan/run.d.ts
|
|
5378
5242
|
/**
|
|
5379
5243
|
* Run an asynchronous generator to completion
|
|
5380
5244
|
*
|
|
@@ -5432,8 +5296,6 @@ export declare namespace run {
|
|
|
5432
5296
|
export var async: typeof asyncRun;
|
|
5433
5297
|
export var attempt: typeof attemptRun;
|
|
5434
5298
|
}
|
|
5435
|
-
//#endregion
|
|
5436
|
-
//#region src/plan/use.d.ts
|
|
5437
5299
|
/**
|
|
5438
5300
|
* Create an asynchronous step from a callback
|
|
5439
5301
|
*
|
|
@@ -5467,15 +5329,11 @@ export declare function use<Value>(value: Value & StepValue<Value>): Step<Value>
|
|
|
5467
5329
|
export declare namespace use {
|
|
5468
5330
|
export var async: typeof asyncUse;
|
|
5469
5331
|
}
|
|
5470
|
-
//#endregion
|
|
5471
|
-
//#region src/models/aborter.model.d.ts
|
|
5472
5332
|
type Aborter = {
|
|
5473
5333
|
callback: GenericCallback;
|
|
5474
5334
|
cancel(): void;
|
|
5475
5335
|
signal: AbortSignal;
|
|
5476
5336
|
};
|
|
5477
|
-
//#endregion
|
|
5478
|
-
//#region src/models/promise.model.d.ts
|
|
5479
5337
|
/**
|
|
5480
5338
|
* A _Promise_ that can be canceled
|
|
5481
5339
|
*/
|
|
@@ -5578,8 +5436,6 @@ type RejectedPromise = {
|
|
|
5578
5436
|
};
|
|
5579
5437
|
declare const PROMISE_TYPE_FULFILLED = "fulfilled";
|
|
5580
5438
|
declare const PROMISE_TYPE_REJECTED = "rejected";
|
|
5581
|
-
//#endregion
|
|
5582
|
-
//#region src/promise/delay.d.ts
|
|
5583
5439
|
/**
|
|
5584
5440
|
* Create a delayed promise that resolves after a certain amount of time, or rejects if aborted
|
|
5585
5441
|
*
|
|
@@ -5594,8 +5450,6 @@ export declare function delay(options?: PromiseOptions): Promise<void>;
|
|
|
5594
5450
|
* @returns Delayed promise
|
|
5595
5451
|
*/
|
|
5596
5452
|
export declare function delay(time?: number): Promise<void>;
|
|
5597
|
-
//#endregion
|
|
5598
|
-
//#region src/promise/index.d.ts
|
|
5599
5453
|
type AttemptPromiseOptions = PromiseOptions | AbortSignal | number;
|
|
5600
5454
|
/**
|
|
5601
5455
|
* Wrap a _Promise_ with safety handlers
|
|
@@ -5702,8 +5556,6 @@ export declare function resultPromises<Items extends PlainObject>(items: Items,
|
|
|
5702
5556
|
export declare namespace promises {
|
|
5703
5557
|
export var result: typeof resultPromises;
|
|
5704
5558
|
}
|
|
5705
|
-
//#endregion
|
|
5706
|
-
//#region src/internal/result/misc.d.ts
|
|
5707
5559
|
/**
|
|
5708
5560
|
* Creates an extended error result
|
|
5709
5561
|
*
|
|
@@ -5800,8 +5652,6 @@ export declare namespace error {
|
|
|
5800
5652
|
export declare namespace ok {
|
|
5801
5653
|
export var is: typeof isOk;
|
|
5802
5654
|
}
|
|
5803
|
-
//#endregion
|
|
5804
|
-
//#region src/result/misc.d.ts
|
|
5805
5655
|
/**
|
|
5806
5656
|
* Converts a result to a _Promise_
|
|
5807
5657
|
*
|
|
@@ -5820,8 +5670,6 @@ export declare function toPromise<Value, E = Error>(callback: () => AnyResult<Va
|
|
|
5820
5670
|
* @returns Promised result
|
|
5821
5671
|
*/
|
|
5822
5672
|
export declare function toPromise<Value, E = Error>(result: AnyResult<Value, E>): Promise<Value>;
|
|
5823
|
-
//#endregion
|
|
5824
|
-
//#region src/promise/helpers.d.ts
|
|
5825
5673
|
/**
|
|
5826
5674
|
* Is the value a fulfilled _Promise_ result?
|
|
5827
5675
|
*
|
|
@@ -5836,8 +5684,6 @@ export declare function isFulfilled<Value>(value: unknown): value is FulfilledPr
|
|
|
5836
5684
|
* @returns `true` if the value is a rejected _Promise_ result, otherwise `false`
|
|
5837
5685
|
*/
|
|
5838
5686
|
export declare function isRejected(value: unknown): value is RejectedPromise;
|
|
5839
|
-
//#endregion
|
|
5840
|
-
//#region src/promise/misc.d.ts
|
|
5841
5687
|
/**
|
|
5842
5688
|
* Create a cancelable _Promise_
|
|
5843
5689
|
*
|
|
@@ -5867,8 +5713,6 @@ export declare function toResult<Value>(callback: () => Promise<Value>): Promise
|
|
|
5867
5713
|
* @returns Promised result
|
|
5868
5714
|
*/
|
|
5869
5715
|
export declare function toResult<Value>(promise: Promise<Value>): Promise<Result<Value>>;
|
|
5870
|
-
//#endregion
|
|
5871
|
-
//#region src/promise/timed.d.ts
|
|
5872
5716
|
/**
|
|
5873
5717
|
* @internal
|
|
5874
5718
|
*/
|
|
@@ -5889,8 +5733,6 @@ export declare function timed<Value>(promise: Promise<Value>, options: RequiredK
|
|
|
5889
5733
|
* @returns Timed _Promise_
|
|
5890
5734
|
*/
|
|
5891
5735
|
export declare function timed<Value>(promise: Promise<Value>, time: number): Promise<Value>;
|
|
5892
|
-
//#endregion
|
|
5893
|
-
//#region src/internal/result/attempt.d.ts
|
|
5894
5736
|
/**
|
|
5895
5737
|
* Executes a _Promise_, catching any errors, and returns a result
|
|
5896
5738
|
*
|
|
@@ -5947,8 +5789,6 @@ export declare function attempt<Value>(callback: () => Value): Result<Value, Err
|
|
|
5947
5789
|
export declare namespace attempt {
|
|
5948
5790
|
export var async: typeof asyncAttempt;
|
|
5949
5791
|
}
|
|
5950
|
-
//#endregion
|
|
5951
|
-
//#region src/result/match.d.ts
|
|
5952
5792
|
/**
|
|
5953
5793
|
* Handles a _Result_ with match callbacks
|
|
5954
5794
|
*
|
|
@@ -5990,8 +5830,6 @@ export declare function matchResult<Value, Returned, E = Error>(result: AnyResul
|
|
|
5990
5830
|
export declare namespace matchResult {
|
|
5991
5831
|
export var async: typeof asyncMatchResult;
|
|
5992
5832
|
}
|
|
5993
|
-
//#endregion
|
|
5994
|
-
//#region src/result/work/flow.d.ts
|
|
5995
5833
|
/**
|
|
5996
5834
|
* Create an asynchronous _Flow_, a function that attempts to pipe a value through a series of functions
|
|
5997
5835
|
*
|
|
@@ -6163,8 +6001,6 @@ export declare function attemptFlow(...fns: GenericCallback[]): (...args: unknow
|
|
|
6163
6001
|
export declare namespace attemptFlow {
|
|
6164
6002
|
export var async: typeof attemptAsyncFlow;
|
|
6165
6003
|
}
|
|
6166
|
-
//#endregion
|
|
6167
|
-
//#region src/result/work/pipe.d.ts
|
|
6168
6004
|
type InitialAsyncPipeValue<Initial> = GenericCallback | Initial | Promise<Initial> | Result<Initial>;
|
|
6169
6005
|
type InitialPipeValue<Initial> = GenericCallback | Initial | Result<Initial>;
|
|
6170
6006
|
type WrapValue<Value> = Result<UnwrapValue<Value>>;
|
|
@@ -6347,8 +6183,6 @@ export declare function attemptPipe<Initial>(initial: InitialPipeValue<Initial>,
|
|
|
6347
6183
|
export declare namespace attemptPipe {
|
|
6348
6184
|
export var async: typeof attemptAsyncPipe;
|
|
6349
6185
|
}
|
|
6350
|
-
//#endregion
|
|
6351
|
-
//#region src/models/string/string.fuzzy.model.d.ts
|
|
6352
6186
|
/**
|
|
6353
6187
|
* Fuzzy searcher for an array of items
|
|
6354
6188
|
*/
|
|
@@ -6470,8 +6304,6 @@ type InternalFuzzy<Item = unknown> = {
|
|
|
6470
6304
|
[FUZZY_SYMBOL]: FuzzyState<Item>;
|
|
6471
6305
|
} & Fuzzy<Item>;
|
|
6472
6306
|
declare const FUZZY_SYMBOL: unique symbol;
|
|
6473
|
-
//#endregion
|
|
6474
|
-
//#region src/string/fuzzy.d.ts
|
|
6475
6307
|
declare function Fuzzy(this: InternalFuzzy, state: FuzzyState<unknown>): void;
|
|
6476
6308
|
/**
|
|
6477
6309
|
* Create a fuzzy searcher for an array of items
|
|
@@ -6520,8 +6352,6 @@ export declare namespace fuzzy {
|
|
|
6520
6352
|
export var is: typeof isFuzzy;
|
|
6521
6353
|
export var match: typeof fuzzyMatch;
|
|
6522
6354
|
}
|
|
6523
|
-
//#endregion
|
|
6524
|
-
//#region src/string/index.d.ts
|
|
6525
6355
|
/**
|
|
6526
6356
|
* Dedent a string template, removing common leading whitespace from each line
|
|
6527
6357
|
*
|
|
@@ -6586,8 +6416,6 @@ export declare function trim(value: string): string;
|
|
|
6586
6416
|
* ```
|
|
6587
6417
|
*/
|
|
6588
6418
|
export declare function truncate(value: string, length: number, suffix?: string): string;
|
|
6589
|
-
//#endregion
|
|
6590
|
-
//#region src/string/match.d.ts
|
|
6591
6419
|
/**
|
|
6592
6420
|
* Check if a string ends with a specified substring
|
|
6593
6421
|
*
|
|
@@ -6639,8 +6467,6 @@ export declare function includes(haystack: string, needle: string, ignoreCase?:
|
|
|
6639
6467
|
* ```
|
|
6640
6468
|
*/
|
|
6641
6469
|
export declare function startsWith(haystack: string, needle: string, ignoreCase?: boolean): boolean;
|
|
6642
|
-
//#endregion
|
|
6643
|
-
//#region src/models/string/string.normalize.model.d.ts
|
|
6644
6470
|
/**
|
|
6645
6471
|
* Options for normalizing a string
|
|
6646
6472
|
*/
|
|
@@ -6681,8 +6507,6 @@ type Normalizer = {
|
|
|
6681
6507
|
normalize(value: string): string;
|
|
6682
6508
|
};
|
|
6683
6509
|
type NormalizerOptions = Required<NormalizeOptions>;
|
|
6684
|
-
//#endregion
|
|
6685
|
-
//#region src/string/normalize.d.ts
|
|
6686
6510
|
declare function Normalizer(this: any, options: NormalizerOptions): void;
|
|
6687
6511
|
/**
|
|
6688
6512
|
* Deburr a string, removing diacritical marks
|
|
@@ -6713,8 +6537,6 @@ export declare function normalize(value: string, options?: NormalizeOptions): st
|
|
|
6713
6537
|
export declare namespace normalize {
|
|
6714
6538
|
export var initialize: typeof initializeNormalizer;
|
|
6715
6539
|
}
|
|
6716
|
-
//#endregion
|
|
6717
|
-
//#region src/models/string/string.template.model.d.ts
|
|
6718
6540
|
/**
|
|
6719
6541
|
* Renderer for a string template with variables
|
|
6720
6542
|
*
|
|
@@ -6757,8 +6579,6 @@ type TemplaterOptions = Required<TemplateOptions>;
|
|
|
6757
6579
|
* Render a template string with variables
|
|
6758
6580
|
*/
|
|
6759
6581
|
type TemplaterRenderer = (variables?: PlainObject) => string;
|
|
6760
|
-
//#endregion
|
|
6761
|
-
//#region src/string/template.d.ts
|
|
6762
6582
|
declare function Templater(this: any, options: TemplaterOptions): void;
|
|
6763
6583
|
/**
|
|
6764
6584
|
* Create a _Templater_ with predefined options
|
|
@@ -6791,8 +6611,6 @@ export declare function template(value: string, variables?: PlainObject, options
|
|
|
6791
6611
|
export declare namespace template {
|
|
6792
6612
|
export var initialize: typeof initializeTemplater;
|
|
6793
6613
|
}
|
|
6794
|
-
//#endregion
|
|
6795
|
-
//#region src/models/value/value.clone.model.d.ts
|
|
6796
6614
|
type CloneOptions = {
|
|
6797
6615
|
/**
|
|
6798
6616
|
* Copy functions instead of returning `undefined`? _(defaults to `false`)_
|
|
@@ -6832,8 +6650,6 @@ type Cloner = {
|
|
|
6832
6650
|
*/
|
|
6833
6651
|
register<Instance>(constructor: Constructor<Instance>, handler?: string | ((value: Instance) => Instance)): void;
|
|
6834
6652
|
};
|
|
6835
|
-
//#endregion
|
|
6836
|
-
//#region src/value/clone.d.ts
|
|
6837
6653
|
declare function Cloner(this: any, options: Required<CloneOptions>): void;
|
|
6838
6654
|
/**
|
|
6839
6655
|
* Clone any kind of value _(deeply, if needed)_
|
|
@@ -6885,8 +6701,6 @@ export declare namespace clone {
|
|
|
6885
6701
|
export var initialize: typeof initializeCloner;
|
|
6886
6702
|
export var register: typeof registerCloner;
|
|
6887
6703
|
}
|
|
6888
|
-
//#endregion
|
|
6889
|
-
//#region src/value/collection.d.ts
|
|
6890
6704
|
/**
|
|
6891
6705
|
* Does the value exist for a key in a _Map_?
|
|
6892
6706
|
*
|
|
@@ -6912,8 +6726,6 @@ export declare function inMap<Key, Value>(map: Map<Key, Value>, value: Value, ke
|
|
|
6912
6726
|
* @returns `true` if the value exists, otherwise `false`
|
|
6913
6727
|
*/
|
|
6914
6728
|
export declare function inSet<Value>(set: Set<Value>, value: Value): boolean;
|
|
6915
|
-
//#endregion
|
|
6916
|
-
//#region src/models/value/value.diff.model.d.ts
|
|
6917
6729
|
/**
|
|
6918
6730
|
* Options for value comparison
|
|
6919
6731
|
*/
|
|
@@ -6957,8 +6769,6 @@ type DiffValue<First = unknown, Second = First> = {
|
|
|
6957
6769
|
*/
|
|
6958
6770
|
to: Second;
|
|
6959
6771
|
};
|
|
6960
|
-
//#endregion
|
|
6961
|
-
//#region src/value/diff.d.ts
|
|
6962
6772
|
/**
|
|
6963
6773
|
* Find the differences between two values
|
|
6964
6774
|
*
|
|
@@ -6968,8 +6778,6 @@ type DiffValue<First = unknown, Second = First> = {
|
|
|
6968
6778
|
* @returns Difference result
|
|
6969
6779
|
*/
|
|
6970
6780
|
export declare function diff<First, Second = First>(first: First, second: Second, options?: DiffOptions): DiffResult<First, Second>;
|
|
6971
|
-
//#endregion
|
|
6972
|
-
//#region src/value/freeze.d.ts
|
|
6973
6781
|
/**
|
|
6974
6782
|
* Freeze an array and its indiced values, but not any nested values
|
|
6975
6783
|
*
|
|
@@ -7107,8 +6915,6 @@ export declare namespace freeze {
|
|
|
7107
6915
|
export var flat: typeof flatFreeze;
|
|
7108
6916
|
export var is: typeof isFrozen;
|
|
7109
6917
|
}
|
|
7110
|
-
//#endregion
|
|
7111
|
-
//#region src/value/omit.d.ts
|
|
7112
6918
|
/**
|
|
7113
6919
|
* Create a new object without the specified keys
|
|
7114
6920
|
*
|
|
@@ -7117,8 +6923,6 @@ export declare namespace freeze {
|
|
|
7117
6923
|
* @returns Partial object without the specified keys
|
|
7118
6924
|
*/
|
|
7119
6925
|
export declare function omit<Value extends PlainObject, ValueKey extends keyof Value>(value: Value, keys: ValueKey[]): Omit<Value, ValueKey>;
|
|
7120
|
-
//#endregion
|
|
7121
|
-
//#region src/value/pick.d.ts
|
|
7122
6926
|
/**
|
|
7123
6927
|
* Create a new object with only the specified keys
|
|
7124
6928
|
*
|
|
@@ -7127,8 +6931,6 @@ export declare function omit<Value extends PlainObject, ValueKey extends keyof V
|
|
|
7127
6931
|
* @returns Partial object with only the specified keys
|
|
7128
6932
|
*/
|
|
7129
6933
|
export declare function pick<Value extends PlainObject, ValueKey extends keyof Value>(value: Value, keys: ValueKey[]): Pick<Value, ValueKey>;
|
|
7130
|
-
//#endregion
|
|
7131
|
-
//#region src/value/shake.d.ts
|
|
7132
6934
|
/**
|
|
7133
6935
|
* Shake an object, removing all keys with `undefined` values
|
|
7134
6936
|
*
|
|
@@ -7136,8 +6938,6 @@ export declare function pick<Value extends PlainObject, ValueKey extends keyof V
|
|
|
7136
6938
|
* @returns Shaken object
|
|
7137
6939
|
*/
|
|
7138
6940
|
export declare function shake<Value extends PlainObject>(value: Value): Shaken<Value>;
|
|
7139
|
-
//#endregion
|
|
7140
|
-
//#region src/value/smush.d.ts
|
|
7141
6941
|
/**
|
|
7142
6942
|
* Smush an object into a flat object that uses dot notation keys
|
|
7143
6943
|
*
|
|
@@ -7145,8 +6945,6 @@ export declare function shake<Value extends PlainObject>(value: Value): Shaken<V
|
|
|
7145
6945
|
* @returns Smushed object with dot notation keys
|
|
7146
6946
|
*/
|
|
7147
6947
|
export declare function smush<Value extends PlainObject>(value: Value): Smushed<Value>;
|
|
7148
|
-
//#endregion
|
|
7149
|
-
//#region src/value/unsmush.d.ts
|
|
7150
6948
|
/**
|
|
7151
6949
|
* Unsmush a smushed object _(turning dot notation keys into nested keys)_
|
|
7152
6950
|
*
|
|
@@ -7154,8 +6952,6 @@ export declare function smush<Value extends PlainObject>(value: Value): Smushed<
|
|
|
7154
6952
|
* @returns Unsmushed object with nested keys
|
|
7155
6953
|
*/
|
|
7156
6954
|
export declare function unsmush<Value extends PlainObject>(value: Value): Unsmushed<Value>;
|
|
7157
|
-
//#endregion
|
|
7158
|
-
//#region src/models/value/value.merge.model.d.ts
|
|
7159
6955
|
/**
|
|
7160
6956
|
* Options for assigning values
|
|
7161
6957
|
*/
|
|
@@ -7227,8 +7023,6 @@ type MergingOptions = {
|
|
|
7227
7023
|
skipNullableAny: boolean;
|
|
7228
7024
|
skipNullableInArrays: boolean;
|
|
7229
7025
|
};
|
|
7230
|
-
//#endregion
|
|
7231
|
-
//#region src/value/merge.d.ts
|
|
7232
7026
|
declare function Assigner(this: any, options: MergingOptions): void;
|
|
7233
7027
|
declare function Merger(this: any, options: MergingOptions): void;
|
|
7234
7028
|
/**
|
|
@@ -7272,8 +7066,6 @@ export declare namespace assign {
|
|
|
7272
7066
|
export declare namespace merge {
|
|
7273
7067
|
export var initialize: typeof initializeMerger;
|
|
7274
7068
|
}
|
|
7275
|
-
//#endregion
|
|
7276
|
-
//#region src/models/value/value.transform.model.d.ts
|
|
7277
7069
|
/**
|
|
7278
7070
|
* A callback transform an object's properties
|
|
7279
7071
|
*/
|
|
@@ -7283,8 +7075,6 @@ type TransformCallback<Value extends PlainObject, Key extends keyof Value> = (ke
|
|
|
7283
7075
|
*/
|
|
7284
7076
|
type TransformCallbacks<Value extends PlainObject> = Partial<{ [Key in keyof Value]: (value: Value[Key]) => Value[Key]; }>;
|
|
7285
7077
|
type TransformHandler<Value extends PlainObject> = TransformCallback<Value, keyof Value> | TransformCallbacks<Value>;
|
|
7286
|
-
//#endregion
|
|
7287
|
-
//#region src/value/transform.d.ts
|
|
7288
7078
|
declare function Transformer(this: any, transformer: ReturnType<typeof getTransformHandler>): void;
|
|
7289
7079
|
declare function getTransformHandler<Value extends PlainObject, Key extends keyof Value>(input: unknown): TransformHandler<Value> | undefined;
|
|
7290
7080
|
/**
|
|
@@ -7324,8 +7114,6 @@ export declare function transform<Value extends PlainObject>(value: Value, trans
|
|
|
7324
7114
|
export declare namespace transform {
|
|
7325
7115
|
export var initialize: typeof initializeTransformer;
|
|
7326
7116
|
}
|
|
7327
|
-
//#endregion
|
|
7328
|
-
//#region src/models/subscription.model.d.ts
|
|
7329
7117
|
type Subscription = {
|
|
7330
7118
|
/**
|
|
7331
7119
|
* Is the subscription active?
|
|
@@ -7424,8 +7212,6 @@ type SubscriptionsValuesItem<MapKey, MapValue> = {
|
|
|
7424
7212
|
any: Map<MapKey, MapValue>;
|
|
7425
7213
|
keyed?: Map<Key$1, Map<MapKey, MapValue>>;
|
|
7426
7214
|
};
|
|
7427
|
-
//#endregion
|
|
7428
|
-
//#region src/models/beacon.model.d.ts
|
|
7429
7215
|
/**
|
|
7430
7216
|
* A beacon is a lighthouse, holding an observable value that can be subscribed to and emitted from
|
|
7431
7217
|
*/
|
|
@@ -7523,8 +7309,6 @@ type Observer<Value> = {
|
|
|
7523
7309
|
*/
|
|
7524
7310
|
next?: (value: Value) => void;
|
|
7525
7311
|
};
|
|
7526
|
-
//#endregion
|
|
7527
|
-
//#region src/internal/subscription.d.ts
|
|
7528
7312
|
/**
|
|
7529
7313
|
* Is the value a subscription?
|
|
7530
7314
|
*
|
|
@@ -7546,8 +7330,6 @@ export declare function isSubscriptions(value: unknown): value is Subscriptions;
|
|
|
7546
7330
|
* @returns Subscription store
|
|
7547
7331
|
*/
|
|
7548
7332
|
export declare function subscriptions<Value = unknown>(parameters?: SubscriptionsParameters): Subscriptions<Value>;
|
|
7549
|
-
//#endregion
|
|
7550
|
-
//#region src/beacon.d.ts
|
|
7551
7333
|
declare function Beacon(this: any, value: unknown, options?: BeaconOptions<unknown>): void;
|
|
7552
7334
|
declare function Observable(this: any, beacon: BeaconState<unknown>): void;
|
|
7553
7335
|
/**
|
|
@@ -7579,8 +7361,6 @@ export declare function isBeaconSubscription(value: unknown): value is Subscript
|
|
|
7579
7361
|
* @returns `true` if the value is an observable, otherwise `false`
|
|
7580
7362
|
*/
|
|
7581
7363
|
export declare function isObservable<Value = unknown>(value: unknown): value is Observable<Value>;
|
|
7582
|
-
//#endregion
|
|
7583
|
-
//#region src/models/herald.model.d.ts
|
|
7584
7364
|
type Herald<Events extends Record<string, GenericCallback>> = {
|
|
7585
7365
|
readonly events: HeraldEvents<Events>;
|
|
7586
7366
|
/**
|
|
@@ -7618,8 +7398,6 @@ type HeraldOptions<Events extends Record<string, GenericCallback>> = {
|
|
|
7618
7398
|
property?: SubscriptionProperty;
|
|
7619
7399
|
onCreate?: HeraldOnCreate<Events>;
|
|
7620
7400
|
};
|
|
7621
|
-
//#endregion
|
|
7622
|
-
//#region src/models/color.model.d.ts
|
|
7623
7401
|
/**
|
|
7624
7402
|
* A color that is represented in multiple color formats
|
|
7625
7403
|
*/
|
|
@@ -7891,8 +7669,6 @@ type ColorValue = string | HSLColor | HWBColor | RGBColor;
|
|
|
7891
7669
|
* Extended color values
|
|
7892
7670
|
*/
|
|
7893
7671
|
type ColorValueExtended = ColorValue | HSLAColor | HWBAColor | RGBAColor;
|
|
7894
|
-
//#endregion
|
|
7895
|
-
//#region src/color/misc/get.d.ts
|
|
7896
7672
|
/**
|
|
7897
7673
|
* Get a foreground color _(usually text)_ based on a background color's luminance as an unprefixed hex color string
|
|
7898
7674
|
*
|
|
@@ -7993,8 +7769,6 @@ export declare function getRgbaColor(value: unknown): RGBAColor;
|
|
|
7993
7769
|
* @returns _RGB_ color
|
|
7994
7770
|
*/
|
|
7995
7771
|
export declare function getRgbColor(value: unknown): RGBColor;
|
|
7996
|
-
//#endregion
|
|
7997
|
-
//#region src/color/misc/is.d.ts
|
|
7998
7772
|
/**
|
|
7999
7773
|
* Is the value a _Color_?
|
|
8000
7774
|
*
|
|
@@ -8061,8 +7835,6 @@ export declare function isRgbaColor(value: unknown): value is RGBAColor;
|
|
|
8061
7835
|
* @returns `true` if the value is an _RGB_ color, otherwise `false`
|
|
8062
7836
|
*/
|
|
8063
7837
|
export declare function isRgbColor(value: unknown): value is RGBColor;
|
|
8064
|
-
//#endregion
|
|
8065
|
-
//#region src/color/space/hex.d.ts
|
|
8066
7838
|
/**
|
|
8067
7839
|
* Get the normalized hex color from a value
|
|
8068
7840
|
*
|
|
@@ -8135,8 +7907,6 @@ export declare function hexToRgb(value: string): RGBColor;
|
|
|
8135
7907
|
* @returns _RGBA_ color
|
|
8136
7908
|
*/
|
|
8137
7909
|
export declare function hexToRgba(value: string): RGBAColor;
|
|
8138
|
-
//#endregion
|
|
8139
|
-
//#region src/color/space/hsl.d.ts
|
|
8140
7910
|
/**
|
|
8141
7911
|
* Convert an _HSL(A)_ color to a hex color _(with optional alpha channel, i.e., opacity)_
|
|
8142
7912
|
*
|
|
@@ -8187,8 +7957,6 @@ export declare function hslToRgb(hsl: HSLAColor | HSLColor): RGBColor;
|
|
|
8187
7957
|
* @returns _RGBA_ color
|
|
8188
7958
|
*/
|
|
8189
7959
|
export declare function hslToRgba(hsl: HSLAColor | HSLColor): RGBAColor;
|
|
8190
|
-
//#endregion
|
|
8191
|
-
//#region src/color/space/hwb.d.ts
|
|
8192
7960
|
/**
|
|
8193
7961
|
* Convert an _HWB(A)_ color to a hex color _(with optional alpha channel, i.e., opacity)_
|
|
8194
7962
|
*
|
|
@@ -8235,8 +8003,6 @@ export declare function hwbToRgb(hwb: HWBAColor | HWBColor): RGBColor;
|
|
|
8235
8003
|
* @returns _RGBA_ color
|
|
8236
8004
|
*/
|
|
8237
8005
|
export declare function hwbToRgba(hwb: HWBAColor | HWBColor): RGBAColor;
|
|
8238
|
-
//#endregion
|
|
8239
|
-
//#region src/color/space/rgb.d.ts
|
|
8240
8006
|
/**
|
|
8241
8007
|
* Convert an _RGB(A)_ color to a hex color _(with optional alpha channel, i.e., opacity)_
|
|
8242
8008
|
*
|
|
@@ -8291,8 +8057,6 @@ export declare function rgbToHwb(rgb: RGBAColor | RGBColor): HWBColor;
|
|
|
8291
8057
|
* @returns _HWBA_ color
|
|
8292
8058
|
*/
|
|
8293
8059
|
export declare function rgbToHwba(rgb: RGBAColor | RGBColor): HWBAColor;
|
|
8294
|
-
//#endregion
|
|
8295
|
-
//#region src/color/index.d.ts
|
|
8296
8060
|
/**
|
|
8297
8061
|
* Get a _Color_ from any kind of value
|
|
8298
8062
|
*
|
|
@@ -8303,8 +8067,6 @@ export declare function rgbToHwba(rgb: RGBAColor | RGBColor): HWBAColor;
|
|
|
8303
8067
|
* @returns _Color_ instance
|
|
8304
8068
|
*/
|
|
8305
8069
|
export declare function getColor(value: unknown): Color;
|
|
8306
|
-
//#endregion
|
|
8307
|
-
//#region src/internal/herald.d.ts
|
|
8308
8070
|
/**
|
|
8309
8071
|
* Create a _Herald_ for announcing named events
|
|
8310
8072
|
*
|
|
@@ -8334,8 +8096,6 @@ export declare function isHeraldEvents<Events extends Record<string, GenericCall
|
|
|
8334
8096
|
* @returns `true` if the value is a herald subscription, otherwise `false`
|
|
8335
8097
|
*/
|
|
8336
8098
|
export declare function isHeraldSubscription(value: unknown): value is Subscription;
|
|
8337
|
-
//#endregion
|
|
8338
|
-
//#region src/internal/is.d.ts
|
|
8339
8099
|
/**
|
|
8340
8100
|
* Is the value an array or a plain object?
|
|
8341
8101
|
*
|
|
@@ -8464,8 +8224,6 @@ export declare function isTemplateStringsArray(value: unknown): value is Templat
|
|
|
8464
8224
|
* @returns `true` if the value is a typed array, otherwise `false`
|
|
8465
8225
|
*/
|
|
8466
8226
|
export declare function isTypedArray(value: unknown): value is TypedArray;
|
|
8467
|
-
//#endregion
|
|
8468
|
-
//#region src/is.d.ts
|
|
8469
8227
|
/**
|
|
8470
8228
|
* Is the value empty, or only containing `null` or `undefined` values?
|
|
8471
8229
|
*
|
|
@@ -8550,8 +8308,6 @@ export declare function isNumerical(value: unknown): value is number | `${number
|
|
|
8550
8308
|
* @returns `true` if the value matches, otherwise `false`
|
|
8551
8309
|
*/
|
|
8552
8310
|
export declare function isObject(value: unknown): value is object;
|
|
8553
|
-
//#endregion
|
|
8554
|
-
//#region src/models/logger.model.d.ts
|
|
8555
8311
|
type Lumberjack = {
|
|
8556
8312
|
/**
|
|
8557
8313
|
* Log any number of values at the "debug" log level
|
|
@@ -8620,8 +8376,6 @@ type TimeLogger = {
|
|
|
8620
8376
|
*/
|
|
8621
8377
|
get stop(): () => void;
|
|
8622
8378
|
};
|
|
8623
|
-
//#endregion
|
|
8624
|
-
//#region src/logger.d.ts
|
|
8625
8379
|
declare function TimeLogger(this: any, label: string): void;
|
|
8626
8380
|
/**
|
|
8627
8381
|
* Is the value a _Logger_?
|
|
@@ -8643,8 +8397,6 @@ declare function isTimeLogger(value: unknown): value is TimeLogger;
|
|
|
8643
8397
|
* _(Logging can be enabled or disabled by setting the `enabled` property)_
|
|
8644
8398
|
*/
|
|
8645
8399
|
declare const Logger: Lumberjack;
|
|
8646
|
-
//#endregion
|
|
8647
|
-
//#region src/internal/math/aggregate.d.ts
|
|
8648
8400
|
/**
|
|
8649
8401
|
* Get the maximum value from a list of items
|
|
8650
8402
|
*
|
|
@@ -8821,8 +8573,6 @@ export declare function min<Item extends PlainObject>(items: Item[], key: keyof
|
|
|
8821
8573
|
* ```
|
|
8822
8574
|
*/
|
|
8823
8575
|
export declare function min(values: number[]): number;
|
|
8824
|
-
//#endregion
|
|
8825
|
-
//#region src/internal/math/misc.d.ts
|
|
8826
8576
|
/**
|
|
8827
8577
|
* Round a number down
|
|
8828
8578
|
*
|
|
@@ -8853,8 +8603,6 @@ export declare function floor(value: number, decimals?: number): number;
|
|
|
8853
8603
|
* ```
|
|
8854
8604
|
*/
|
|
8855
8605
|
export declare function round(value: number, decimals?: number): number;
|
|
8856
|
-
//#endregion
|
|
8857
|
-
//#region src/math.d.ts
|
|
8858
8606
|
/**
|
|
8859
8607
|
* Get the average value from a list of items
|
|
8860
8608
|
*
|
|
@@ -9047,8 +8795,6 @@ export declare function sum<Item extends PlainObject>(items: Item[], key: keyof
|
|
|
9047
8795
|
* ```
|
|
9048
8796
|
*/
|
|
9049
8797
|
export declare function sum(values: number[]): number;
|
|
9050
|
-
//#endregion
|
|
9051
|
-
//#region src/internal/number.d.ts
|
|
9052
8798
|
/**
|
|
9053
8799
|
* Is the number between a minimum and maximum value?
|
|
9054
8800
|
*
|
|
@@ -9101,8 +8847,6 @@ export declare function clamp(value: number, minimum: number, maximum: number, l
|
|
|
9101
8847
|
* ```
|
|
9102
8848
|
*/
|
|
9103
8849
|
export declare function getNumber(value: unknown): number;
|
|
9104
|
-
//#endregion
|
|
9105
|
-
//#region src/query.d.ts
|
|
9106
8850
|
/**
|
|
9107
8851
|
* Convert a query string to a plain _(nested)_ object
|
|
9108
8852
|
*
|
|
@@ -9117,8 +8861,6 @@ export declare function fromQuery(query: string): PlainObject;
|
|
|
9117
8861
|
* @returns Query string representation of the object
|
|
9118
8862
|
*/
|
|
9119
8863
|
export declare function toQuery(parameters: PlainObject): string;
|
|
9120
|
-
//#endregion
|
|
9121
|
-
//#region src/models/queue.model.d.ts
|
|
9122
8864
|
/**
|
|
9123
8865
|
* A queue that can be used to manage (a)synchronous tasks with a specific key
|
|
9124
8866
|
*/
|
|
@@ -9311,8 +9053,6 @@ type Queued<Value> = {
|
|
|
9311
9053
|
readonly promise: Promise<Value extends Promise<infer Result> ? Result : Value>;
|
|
9312
9054
|
};
|
|
9313
9055
|
type Tail<Values extends any[]> = Values extends [infer _, ...infer Rest] ? Rest : never;
|
|
9314
|
-
//#endregion
|
|
9315
|
-
//#region src/queue.d.ts
|
|
9316
9056
|
declare function KeyedQueue(this: any, callback: GenericAsyncCallback, options: Required<QueueOptions>): void;
|
|
9317
9057
|
declare function Queue(this: any, callback: GenericAsyncCallback, options: Required<QueueOptions>, key?: string): void;
|
|
9318
9058
|
/**
|
|
@@ -9366,8 +9106,6 @@ export declare function queue<Callback extends GenericCallback>(callback: Callba
|
|
|
9366
9106
|
export declare namespace queue {
|
|
9367
9107
|
export var keyed: typeof keyedQueue;
|
|
9368
9108
|
}
|
|
9369
|
-
//#endregion
|
|
9370
|
-
//#region src/internal/random.d.ts
|
|
9371
9109
|
/**
|
|
9372
9110
|
* Get a random number between 0 _(inclusive)_ and 1 _(exclusive)_
|
|
9373
9111
|
*
|
|
@@ -9390,8 +9128,6 @@ declare function getRandomFloatingNumber(minimum?: number, maximum?: number): nu
|
|
|
9390
9128
|
* @returns Random integer
|
|
9391
9129
|
*/
|
|
9392
9130
|
export declare function getRandomInteger(minimum?: number, maximum?: number): number;
|
|
9393
|
-
//#endregion
|
|
9394
|
-
//#region src/random.d.ts
|
|
9395
9131
|
/**
|
|
9396
9132
|
* Get a random boolean
|
|
9397
9133
|
*
|
|
@@ -9441,8 +9177,6 @@ export declare function getRandomItems<Value>(array: Value[], amount: number): V
|
|
|
9441
9177
|
* @returns Shuffled version of the original array
|
|
9442
9178
|
*/
|
|
9443
9179
|
export declare function getRandomItems<Value>(array: Value[]): Value[];
|
|
9444
|
-
//#endregion
|
|
9445
|
-
//#region src/sized/set.d.ts
|
|
9446
9180
|
/**
|
|
9447
9181
|
* A _Set_ with a maximum size
|
|
9448
9182
|
*
|
|
@@ -9490,5 +9224,4 @@ export declare class SizedSet<Value = unknown> extends Set<Value> {
|
|
|
9490
9224
|
*/
|
|
9491
9225
|
get(value: Value, update?: boolean): Value | undefined;
|
|
9492
9226
|
}
|
|
9493
|
-
//#endregion
|
|
9494
9227
|
export { type ArrayComparisonSorter, type ArrayKeySorter, type ArrayKeySorters, type ArraySorter, type ArraySorters, type ArrayValueSorter, type Asserter, type AssignOptions, type Assigner, type AsyncFailure, type AsyncFlow, type AsyncLimiter, type AsyncOnce, type AsyncPlan, type AsyncPlanned, type AsyncStep, type AsyncSuccess, type Beacon, type BeaconOptions, type CloneOptions, type Cloner, type Color, type ColorType, type ColorTypeExtended, type ColorValue, type ColorValueExtended, type CompareCallback, type ComparisonSorter, type DiffOptions, type DiffResult, type EqualOptions, type Equalizer, type Failure, type Flow, type FulfilledPromise, type Fuzzy, type FuzzyOptions, type FuzzyResult, type HSLAColor, type HSLColor, type HWBAColor, type HWBColor, type Herald, type HeraldEvents, type HeraldOptions, Key$1 as Key, type KeyedQueue, type Limiter, Logger, type Memoized, type MemoizedOptions, type MergeOptions, type Merger, type NormalizeOptions, type Normalizer, type Observable, type Observer, type Once, type Plan, type PlanError, type PlanOk, type PlanReturned, type Planned, type PromiseOptions, type PromiseStrategy, type PromisesOptions, type Queue, type QueueOptions, type Queued, type RGBAColor, type RGBColor, type RejectedPromise, type Renderer, type Shaken, type Smushed, type SortDirection, type Sorter, type Step, type Subscription, type SubscriptionParameters, type SubscriptionProperty, type Subscriptions, type SubscriptionsParameters, type Success, type TemplateOptions, type Templater, type TemplaterOptions, type TemplaterRenderer, type TimeLogger, type TransformCallback, type TransformCallbacks, type Transformer, type Unsmushed, push as append, filterAndMap as select, toPromise as fromResult, getRandomFloatingNumber as getRandomFloat, isLogger, isTimeLogger, mapAndFilter as reverseSelect };
|