@oscarpalmer/atoms 0.220.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 +8 -266
- package/dist/index.mjs +211 -370
- 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 +2 -5
- 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 +3 -3
- package/dist/internal/string/case.mjs +37 -31
- 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 +3 -8
- 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 +8 -5
- package/dist/models/string/string.case.model.mjs +10 -6
- 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 +2 -3
- 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 +2 -3
- 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,8 +4314,12 @@ export declare namespace flow {
|
|
|
4416
4314
|
export declare namespace pipe {
|
|
4417
4315
|
export var async: typeof asyncPipe;
|
|
4418
4316
|
}
|
|
4419
|
-
|
|
4420
|
-
|
|
4317
|
+
type StringCase = "camel" | "capitalize" | "kebab" | "lower" | "pascal" | "snake" | "title" | "upper";
|
|
4318
|
+
type StringCaseOptions = {
|
|
4319
|
+
capitalizeAny: boolean;
|
|
4320
|
+
capitalizeFirst: boolean;
|
|
4321
|
+
type: StringCase;
|
|
4322
|
+
};
|
|
4421
4323
|
/**
|
|
4422
4324
|
* Convert a string to camel case _(thisIsCamelCase)_
|
|
4423
4325
|
*
|
|
@@ -4522,6 +4424,7 @@ export declare function snakeCase(value: string): string;
|
|
|
4522
4424
|
* ```
|
|
4523
4425
|
*/
|
|
4524
4426
|
export declare function titleCase(value: string): string;
|
|
4427
|
+
export declare function toCaseCallback(this: StringCaseOptions, value: string): string;
|
|
4525
4428
|
/**
|
|
4526
4429
|
* Convert a string to upper case
|
|
4527
4430
|
*
|
|
@@ -4537,8 +4440,6 @@ export declare function titleCase(value: string): string;
|
|
|
4537
4440
|
* ```
|
|
4538
4441
|
*/
|
|
4539
4442
|
export declare function upperCase(value: string): string;
|
|
4540
|
-
//#endregion
|
|
4541
|
-
//#region src/internal/string/misc.d.ts
|
|
4542
4443
|
/**
|
|
4543
4444
|
* Get the string value from any value
|
|
4544
4445
|
*
|
|
@@ -4598,8 +4499,6 @@ export declare function tryEncode(value: boolean | number | string): unknown;
|
|
|
4598
4499
|
* @returns Array of words found in the string
|
|
4599
4500
|
*/
|
|
4600
4501
|
export declare function words(value: string): string[];
|
|
4601
|
-
//#endregion
|
|
4602
|
-
//#region src/models/value/value.handler.model.d.ts
|
|
4603
4502
|
type BaseHandler = {
|
|
4604
4503
|
handlers: WeakMap<WeakKey, string | GenericCallback>;
|
|
4605
4504
|
options: BaseHandlerOptions;
|
|
@@ -4620,8 +4519,6 @@ type ValueHandler = {
|
|
|
4620
4519
|
base: BaseHandler;
|
|
4621
4520
|
handle(value: unknown, ...parameters: unknown[]): unknown;
|
|
4622
4521
|
};
|
|
4623
|
-
//#endregion
|
|
4624
|
-
//#region src/models/value/value.misc.model.d.ts
|
|
4625
4522
|
type ComparisonHandler<Value = any> = (first: Value, second: Value) => number;
|
|
4626
4523
|
/**
|
|
4627
4524
|
* Thanks, type-fest!
|
|
@@ -4639,8 +4536,6 @@ type Smushed<Value extends PlainObject> = Simplify<{ [NestedKey in NestedKeys<Va
|
|
|
4639
4536
|
* An unsmushed object, with all dot notation keys turned into nested keys
|
|
4640
4537
|
*/
|
|
4641
4538
|
type Unsmushed<Value extends PlainObject> = Simplify<Omit<{ [UnionKey in KeysOfUnion<Value>]: Value[UnionKey]; }, `${string}.${string}`>>;
|
|
4642
|
-
//#endregion
|
|
4643
|
-
//#region src/internal/value/compare.d.ts
|
|
4644
4539
|
/**
|
|
4645
4540
|
* Compare two values _(for sorting purposes)_
|
|
4646
4541
|
*
|
|
@@ -4671,8 +4566,6 @@ export declare namespace compare {
|
|
|
4671
4566
|
export var handler: CompareHandler<number>;
|
|
4672
4567
|
export var register: typeof registerComparator;
|
|
4673
4568
|
}
|
|
4674
|
-
//#endregion
|
|
4675
|
-
//#region src/models/value/value.equal.model.d.ts
|
|
4676
4569
|
/**
|
|
4677
4570
|
* Options for value equality comparison
|
|
4678
4571
|
*/
|
|
@@ -4737,8 +4630,6 @@ type EqualizerOptionsKeys<Values> = {
|
|
|
4737
4630
|
enabled: boolean;
|
|
4738
4631
|
values: Values;
|
|
4739
4632
|
};
|
|
4740
|
-
//#endregion
|
|
4741
|
-
//#region src/internal/value/equal.d.ts
|
|
4742
4633
|
declare function Equalizer(this: any, options: EqualizerOptions): void;
|
|
4743
4634
|
/**
|
|
4744
4635
|
* Deregister a equality comparison handler for a specific class
|
|
@@ -4790,8 +4681,6 @@ export declare namespace equal {
|
|
|
4790
4681
|
export var initialize: typeof initializeEqualizer;
|
|
4791
4682
|
export var register: typeof registerEqualizer;
|
|
4792
4683
|
}
|
|
4793
|
-
//#endregion
|
|
4794
|
-
//#region src/internal/value/get.d.ts
|
|
4795
4684
|
/**
|
|
4796
4685
|
* Get the value from an object using a known path
|
|
4797
4686
|
*
|
|
@@ -4829,8 +4718,6 @@ export declare function getValue<Data extends PlainObject, Path extends NestedKe
|
|
|
4829
4718
|
* ```
|
|
4830
4719
|
*/
|
|
4831
4720
|
export declare function getValue<Data extends PlainObject>(data: Data, path: string, ignoreCase?: boolean): unknown;
|
|
4832
|
-
//#endregion
|
|
4833
|
-
//#region src/internal/value/has.d.ts
|
|
4834
4721
|
/**
|
|
4835
4722
|
* Check if a property is defined in an object
|
|
4836
4723
|
*
|
|
@@ -4913,8 +4800,6 @@ export declare function hasValueResult<Data extends PlainObject>(data: Data, pat
|
|
|
4913
4800
|
export declare namespace hasValue {
|
|
4914
4801
|
export var get: typeof hasValueResult;
|
|
4915
4802
|
}
|
|
4916
|
-
//#endregion
|
|
4917
|
-
//#region src/internal/value/set.d.ts
|
|
4918
4803
|
/**
|
|
4919
4804
|
* Update the value in an object using a known path
|
|
4920
4805
|
*
|
|
@@ -4964,8 +4849,6 @@ export declare function setValue<Data extends PlainObject, Path extends NestedKe
|
|
|
4964
4849
|
* ```
|
|
4965
4850
|
*/
|
|
4966
4851
|
export declare function setValue<Data extends PlainObject>(data: Data, path: string, value: unknown, ignoreCase?: boolean): Data;
|
|
4967
|
-
//#endregion
|
|
4968
|
-
//#region src/models/plan.model.d.ts
|
|
4969
4852
|
/**
|
|
4970
4853
|
* An immediately failing asynchronous plan
|
|
4971
4854
|
*/
|
|
@@ -5131,8 +5014,6 @@ type Success<Value> = {
|
|
|
5131
5014
|
*/
|
|
5132
5015
|
[Symbol.iterator]: () => Generator<never, Value>;
|
|
5133
5016
|
};
|
|
5134
|
-
//#endregion
|
|
5135
|
-
//#region src/plan/index.d.ts
|
|
5136
5017
|
/**
|
|
5137
5018
|
* Create a plan for an asynchronous generator function
|
|
5138
5019
|
*
|
|
@@ -5147,8 +5028,6 @@ export declare function plan<Yielded, Returned, Parameters extends unknown[]>(ge
|
|
|
5147
5028
|
* @returns Generator plan
|
|
5148
5029
|
*/
|
|
5149
5030
|
export declare function plan<Yielded, Returned, Parameters extends unknown[]>(generator: (...parameters: Parameters) => Generator<Yielded, Returned>): Plan<Yielded, Returned, Parameters>;
|
|
5150
|
-
//#endregion
|
|
5151
|
-
//#region src/plan/is.d.ts
|
|
5152
5031
|
/**
|
|
5153
5032
|
* Is the value an asynchronous, immediately failing plan?
|
|
5154
5033
|
*
|
|
@@ -5233,8 +5112,6 @@ export declare function isStep<Value = unknown>(value: unknown): value is Step<V
|
|
|
5233
5112
|
* @returns `true` if the value is an immediately successful plan, otherwise `false`
|
|
5234
5113
|
*/
|
|
5235
5114
|
export declare function isSuccess<Value = unknown>(value: unknown): value is Success<Value>;
|
|
5236
|
-
//#endregion
|
|
5237
|
-
//#region src/plan/misc.d.ts
|
|
5238
5115
|
/**
|
|
5239
5116
|
* Create an immediately failing plan
|
|
5240
5117
|
*
|
|
@@ -5297,8 +5174,6 @@ export declare namespace fail {
|
|
|
5297
5174
|
export declare namespace succeed {
|
|
5298
5175
|
export var async: typeof asyncSucceed;
|
|
5299
5176
|
}
|
|
5300
|
-
//#endregion
|
|
5301
|
-
//#region src/plan/result.d.ts
|
|
5302
5177
|
/**
|
|
5303
5178
|
* Attempt to run the generator to completion
|
|
5304
5179
|
*
|
|
@@ -5364,8 +5239,6 @@ export declare function attemptRun<Yielded, Returned, Parameters extends unknown
|
|
|
5364
5239
|
export declare namespace attemptRun {
|
|
5365
5240
|
export var async: typeof asyncAttemptRun;
|
|
5366
5241
|
}
|
|
5367
|
-
//#endregion
|
|
5368
|
-
//#region src/plan/run.d.ts
|
|
5369
5242
|
/**
|
|
5370
5243
|
* Run an asynchronous generator to completion
|
|
5371
5244
|
*
|
|
@@ -5423,8 +5296,6 @@ export declare namespace run {
|
|
|
5423
5296
|
export var async: typeof asyncRun;
|
|
5424
5297
|
export var attempt: typeof attemptRun;
|
|
5425
5298
|
}
|
|
5426
|
-
//#endregion
|
|
5427
|
-
//#region src/plan/use.d.ts
|
|
5428
5299
|
/**
|
|
5429
5300
|
* Create an asynchronous step from a callback
|
|
5430
5301
|
*
|
|
@@ -5458,15 +5329,11 @@ export declare function use<Value>(value: Value & StepValue<Value>): Step<Value>
|
|
|
5458
5329
|
export declare namespace use {
|
|
5459
5330
|
export var async: typeof asyncUse;
|
|
5460
5331
|
}
|
|
5461
|
-
//#endregion
|
|
5462
|
-
//#region src/models/aborter.model.d.ts
|
|
5463
5332
|
type Aborter = {
|
|
5464
5333
|
callback: GenericCallback;
|
|
5465
5334
|
cancel(): void;
|
|
5466
5335
|
signal: AbortSignal;
|
|
5467
5336
|
};
|
|
5468
|
-
//#endregion
|
|
5469
|
-
//#region src/models/promise.model.d.ts
|
|
5470
5337
|
/**
|
|
5471
5338
|
* A _Promise_ that can be canceled
|
|
5472
5339
|
*/
|
|
@@ -5569,8 +5436,6 @@ type RejectedPromise = {
|
|
|
5569
5436
|
};
|
|
5570
5437
|
declare const PROMISE_TYPE_FULFILLED = "fulfilled";
|
|
5571
5438
|
declare const PROMISE_TYPE_REJECTED = "rejected";
|
|
5572
|
-
//#endregion
|
|
5573
|
-
//#region src/promise/delay.d.ts
|
|
5574
5439
|
/**
|
|
5575
5440
|
* Create a delayed promise that resolves after a certain amount of time, or rejects if aborted
|
|
5576
5441
|
*
|
|
@@ -5585,8 +5450,6 @@ export declare function delay(options?: PromiseOptions): Promise<void>;
|
|
|
5585
5450
|
* @returns Delayed promise
|
|
5586
5451
|
*/
|
|
5587
5452
|
export declare function delay(time?: number): Promise<void>;
|
|
5588
|
-
//#endregion
|
|
5589
|
-
//#region src/promise/index.d.ts
|
|
5590
5453
|
type AttemptPromiseOptions = PromiseOptions | AbortSignal | number;
|
|
5591
5454
|
/**
|
|
5592
5455
|
* Wrap a _Promise_ with safety handlers
|
|
@@ -5693,8 +5556,6 @@ export declare function resultPromises<Items extends PlainObject>(items: Items,
|
|
|
5693
5556
|
export declare namespace promises {
|
|
5694
5557
|
export var result: typeof resultPromises;
|
|
5695
5558
|
}
|
|
5696
|
-
//#endregion
|
|
5697
|
-
//#region src/internal/result/misc.d.ts
|
|
5698
5559
|
/**
|
|
5699
5560
|
* Creates an extended error result
|
|
5700
5561
|
*
|
|
@@ -5791,8 +5652,6 @@ export declare namespace error {
|
|
|
5791
5652
|
export declare namespace ok {
|
|
5792
5653
|
export var is: typeof isOk;
|
|
5793
5654
|
}
|
|
5794
|
-
//#endregion
|
|
5795
|
-
//#region src/result/misc.d.ts
|
|
5796
5655
|
/**
|
|
5797
5656
|
* Converts a result to a _Promise_
|
|
5798
5657
|
*
|
|
@@ -5811,8 +5670,6 @@ export declare function toPromise<Value, E = Error>(callback: () => AnyResult<Va
|
|
|
5811
5670
|
* @returns Promised result
|
|
5812
5671
|
*/
|
|
5813
5672
|
export declare function toPromise<Value, E = Error>(result: AnyResult<Value, E>): Promise<Value>;
|
|
5814
|
-
//#endregion
|
|
5815
|
-
//#region src/promise/helpers.d.ts
|
|
5816
5673
|
/**
|
|
5817
5674
|
* Is the value a fulfilled _Promise_ result?
|
|
5818
5675
|
*
|
|
@@ -5827,8 +5684,6 @@ export declare function isFulfilled<Value>(value: unknown): value is FulfilledPr
|
|
|
5827
5684
|
* @returns `true` if the value is a rejected _Promise_ result, otherwise `false`
|
|
5828
5685
|
*/
|
|
5829
5686
|
export declare function isRejected(value: unknown): value is RejectedPromise;
|
|
5830
|
-
//#endregion
|
|
5831
|
-
//#region src/promise/misc.d.ts
|
|
5832
5687
|
/**
|
|
5833
5688
|
* Create a cancelable _Promise_
|
|
5834
5689
|
*
|
|
@@ -5858,8 +5713,6 @@ export declare function toResult<Value>(callback: () => Promise<Value>): Promise
|
|
|
5858
5713
|
* @returns Promised result
|
|
5859
5714
|
*/
|
|
5860
5715
|
export declare function toResult<Value>(promise: Promise<Value>): Promise<Result<Value>>;
|
|
5861
|
-
//#endregion
|
|
5862
|
-
//#region src/promise/timed.d.ts
|
|
5863
5716
|
/**
|
|
5864
5717
|
* @internal
|
|
5865
5718
|
*/
|
|
@@ -5880,8 +5733,6 @@ export declare function timed<Value>(promise: Promise<Value>, options: RequiredK
|
|
|
5880
5733
|
* @returns Timed _Promise_
|
|
5881
5734
|
*/
|
|
5882
5735
|
export declare function timed<Value>(promise: Promise<Value>, time: number): Promise<Value>;
|
|
5883
|
-
//#endregion
|
|
5884
|
-
//#region src/internal/result/attempt.d.ts
|
|
5885
5736
|
/**
|
|
5886
5737
|
* Executes a _Promise_, catching any errors, and returns a result
|
|
5887
5738
|
*
|
|
@@ -5938,8 +5789,6 @@ export declare function attempt<Value>(callback: () => Value): Result<Value, Err
|
|
|
5938
5789
|
export declare namespace attempt {
|
|
5939
5790
|
export var async: typeof asyncAttempt;
|
|
5940
5791
|
}
|
|
5941
|
-
//#endregion
|
|
5942
|
-
//#region src/result/match.d.ts
|
|
5943
5792
|
/**
|
|
5944
5793
|
* Handles a _Result_ with match callbacks
|
|
5945
5794
|
*
|
|
@@ -5981,8 +5830,6 @@ export declare function matchResult<Value, Returned, E = Error>(result: AnyResul
|
|
|
5981
5830
|
export declare namespace matchResult {
|
|
5982
5831
|
export var async: typeof asyncMatchResult;
|
|
5983
5832
|
}
|
|
5984
|
-
//#endregion
|
|
5985
|
-
//#region src/result/work/flow.d.ts
|
|
5986
5833
|
/**
|
|
5987
5834
|
* Create an asynchronous _Flow_, a function that attempts to pipe a value through a series of functions
|
|
5988
5835
|
*
|
|
@@ -6154,8 +6001,6 @@ export declare function attemptFlow(...fns: GenericCallback[]): (...args: unknow
|
|
|
6154
6001
|
export declare namespace attemptFlow {
|
|
6155
6002
|
export var async: typeof attemptAsyncFlow;
|
|
6156
6003
|
}
|
|
6157
|
-
//#endregion
|
|
6158
|
-
//#region src/result/work/pipe.d.ts
|
|
6159
6004
|
type InitialAsyncPipeValue<Initial> = GenericCallback | Initial | Promise<Initial> | Result<Initial>;
|
|
6160
6005
|
type InitialPipeValue<Initial> = GenericCallback | Initial | Result<Initial>;
|
|
6161
6006
|
type WrapValue<Value> = Result<UnwrapValue<Value>>;
|
|
@@ -6338,8 +6183,6 @@ export declare function attemptPipe<Initial>(initial: InitialPipeValue<Initial>,
|
|
|
6338
6183
|
export declare namespace attemptPipe {
|
|
6339
6184
|
export var async: typeof attemptAsyncPipe;
|
|
6340
6185
|
}
|
|
6341
|
-
//#endregion
|
|
6342
|
-
//#region src/models/string/string.fuzzy.model.d.ts
|
|
6343
6186
|
/**
|
|
6344
6187
|
* Fuzzy searcher for an array of items
|
|
6345
6188
|
*/
|
|
@@ -6461,8 +6304,6 @@ type InternalFuzzy<Item = unknown> = {
|
|
|
6461
6304
|
[FUZZY_SYMBOL]: FuzzyState<Item>;
|
|
6462
6305
|
} & Fuzzy<Item>;
|
|
6463
6306
|
declare const FUZZY_SYMBOL: unique symbol;
|
|
6464
|
-
//#endregion
|
|
6465
|
-
//#region src/string/fuzzy.d.ts
|
|
6466
6307
|
declare function Fuzzy(this: InternalFuzzy, state: FuzzyState<unknown>): void;
|
|
6467
6308
|
/**
|
|
6468
6309
|
* Create a fuzzy searcher for an array of items
|
|
@@ -6511,8 +6352,6 @@ export declare namespace fuzzy {
|
|
|
6511
6352
|
export var is: typeof isFuzzy;
|
|
6512
6353
|
export var match: typeof fuzzyMatch;
|
|
6513
6354
|
}
|
|
6514
|
-
//#endregion
|
|
6515
|
-
//#region src/string/index.d.ts
|
|
6516
6355
|
/**
|
|
6517
6356
|
* Dedent a string template, removing common leading whitespace from each line
|
|
6518
6357
|
*
|
|
@@ -6577,8 +6416,6 @@ export declare function trim(value: string): string;
|
|
|
6577
6416
|
* ```
|
|
6578
6417
|
*/
|
|
6579
6418
|
export declare function truncate(value: string, length: number, suffix?: string): string;
|
|
6580
|
-
//#endregion
|
|
6581
|
-
//#region src/string/match.d.ts
|
|
6582
6419
|
/**
|
|
6583
6420
|
* Check if a string ends with a specified substring
|
|
6584
6421
|
*
|
|
@@ -6630,8 +6467,6 @@ export declare function includes(haystack: string, needle: string, ignoreCase?:
|
|
|
6630
6467
|
* ```
|
|
6631
6468
|
*/
|
|
6632
6469
|
export declare function startsWith(haystack: string, needle: string, ignoreCase?: boolean): boolean;
|
|
6633
|
-
//#endregion
|
|
6634
|
-
//#region src/models/string/string.normalize.model.d.ts
|
|
6635
6470
|
/**
|
|
6636
6471
|
* Options for normalizing a string
|
|
6637
6472
|
*/
|
|
@@ -6672,8 +6507,6 @@ type Normalizer = {
|
|
|
6672
6507
|
normalize(value: string): string;
|
|
6673
6508
|
};
|
|
6674
6509
|
type NormalizerOptions = Required<NormalizeOptions>;
|
|
6675
|
-
//#endregion
|
|
6676
|
-
//#region src/string/normalize.d.ts
|
|
6677
6510
|
declare function Normalizer(this: any, options: NormalizerOptions): void;
|
|
6678
6511
|
/**
|
|
6679
6512
|
* Deburr a string, removing diacritical marks
|
|
@@ -6704,8 +6537,6 @@ export declare function normalize(value: string, options?: NormalizeOptions): st
|
|
|
6704
6537
|
export declare namespace normalize {
|
|
6705
6538
|
export var initialize: typeof initializeNormalizer;
|
|
6706
6539
|
}
|
|
6707
|
-
//#endregion
|
|
6708
|
-
//#region src/models/string/string.template.model.d.ts
|
|
6709
6540
|
/**
|
|
6710
6541
|
* Renderer for a string template with variables
|
|
6711
6542
|
*
|
|
@@ -6748,8 +6579,6 @@ type TemplaterOptions = Required<TemplateOptions>;
|
|
|
6748
6579
|
* Render a template string with variables
|
|
6749
6580
|
*/
|
|
6750
6581
|
type TemplaterRenderer = (variables?: PlainObject) => string;
|
|
6751
|
-
//#endregion
|
|
6752
|
-
//#region src/string/template.d.ts
|
|
6753
6582
|
declare function Templater(this: any, options: TemplaterOptions): void;
|
|
6754
6583
|
/**
|
|
6755
6584
|
* Create a _Templater_ with predefined options
|
|
@@ -6782,8 +6611,6 @@ export declare function template(value: string, variables?: PlainObject, options
|
|
|
6782
6611
|
export declare namespace template {
|
|
6783
6612
|
export var initialize: typeof initializeTemplater;
|
|
6784
6613
|
}
|
|
6785
|
-
//#endregion
|
|
6786
|
-
//#region src/models/value/value.clone.model.d.ts
|
|
6787
6614
|
type CloneOptions = {
|
|
6788
6615
|
/**
|
|
6789
6616
|
* Copy functions instead of returning `undefined`? _(defaults to `false`)_
|
|
@@ -6823,8 +6650,6 @@ type Cloner = {
|
|
|
6823
6650
|
*/
|
|
6824
6651
|
register<Instance>(constructor: Constructor<Instance>, handler?: string | ((value: Instance) => Instance)): void;
|
|
6825
6652
|
};
|
|
6826
|
-
//#endregion
|
|
6827
|
-
//#region src/value/clone.d.ts
|
|
6828
6653
|
declare function Cloner(this: any, options: Required<CloneOptions>): void;
|
|
6829
6654
|
/**
|
|
6830
6655
|
* Clone any kind of value _(deeply, if needed)_
|
|
@@ -6876,8 +6701,6 @@ export declare namespace clone {
|
|
|
6876
6701
|
export var initialize: typeof initializeCloner;
|
|
6877
6702
|
export var register: typeof registerCloner;
|
|
6878
6703
|
}
|
|
6879
|
-
//#endregion
|
|
6880
|
-
//#region src/value/collection.d.ts
|
|
6881
6704
|
/**
|
|
6882
6705
|
* Does the value exist for a key in a _Map_?
|
|
6883
6706
|
*
|
|
@@ -6903,8 +6726,6 @@ export declare function inMap<Key, Value>(map: Map<Key, Value>, value: Value, ke
|
|
|
6903
6726
|
* @returns `true` if the value exists, otherwise `false`
|
|
6904
6727
|
*/
|
|
6905
6728
|
export declare function inSet<Value>(set: Set<Value>, value: Value): boolean;
|
|
6906
|
-
//#endregion
|
|
6907
|
-
//#region src/models/value/value.diff.model.d.ts
|
|
6908
6729
|
/**
|
|
6909
6730
|
* Options for value comparison
|
|
6910
6731
|
*/
|
|
@@ -6948,8 +6769,6 @@ type DiffValue<First = unknown, Second = First> = {
|
|
|
6948
6769
|
*/
|
|
6949
6770
|
to: Second;
|
|
6950
6771
|
};
|
|
6951
|
-
//#endregion
|
|
6952
|
-
//#region src/value/diff.d.ts
|
|
6953
6772
|
/**
|
|
6954
6773
|
* Find the differences between two values
|
|
6955
6774
|
*
|
|
@@ -6959,8 +6778,6 @@ type DiffValue<First = unknown, Second = First> = {
|
|
|
6959
6778
|
* @returns Difference result
|
|
6960
6779
|
*/
|
|
6961
6780
|
export declare function diff<First, Second = First>(first: First, second: Second, options?: DiffOptions): DiffResult<First, Second>;
|
|
6962
|
-
//#endregion
|
|
6963
|
-
//#region src/value/freeze.d.ts
|
|
6964
6781
|
/**
|
|
6965
6782
|
* Freeze an array and its indiced values, but not any nested values
|
|
6966
6783
|
*
|
|
@@ -7098,8 +6915,6 @@ export declare namespace freeze {
|
|
|
7098
6915
|
export var flat: typeof flatFreeze;
|
|
7099
6916
|
export var is: typeof isFrozen;
|
|
7100
6917
|
}
|
|
7101
|
-
//#endregion
|
|
7102
|
-
//#region src/value/omit.d.ts
|
|
7103
6918
|
/**
|
|
7104
6919
|
* Create a new object without the specified keys
|
|
7105
6920
|
*
|
|
@@ -7108,8 +6923,6 @@ export declare namespace freeze {
|
|
|
7108
6923
|
* @returns Partial object without the specified keys
|
|
7109
6924
|
*/
|
|
7110
6925
|
export declare function omit<Value extends PlainObject, ValueKey extends keyof Value>(value: Value, keys: ValueKey[]): Omit<Value, ValueKey>;
|
|
7111
|
-
//#endregion
|
|
7112
|
-
//#region src/value/pick.d.ts
|
|
7113
6926
|
/**
|
|
7114
6927
|
* Create a new object with only the specified keys
|
|
7115
6928
|
*
|
|
@@ -7118,8 +6931,6 @@ export declare function omit<Value extends PlainObject, ValueKey extends keyof V
|
|
|
7118
6931
|
* @returns Partial object with only the specified keys
|
|
7119
6932
|
*/
|
|
7120
6933
|
export declare function pick<Value extends PlainObject, ValueKey extends keyof Value>(value: Value, keys: ValueKey[]): Pick<Value, ValueKey>;
|
|
7121
|
-
//#endregion
|
|
7122
|
-
//#region src/value/shake.d.ts
|
|
7123
6934
|
/**
|
|
7124
6935
|
* Shake an object, removing all keys with `undefined` values
|
|
7125
6936
|
*
|
|
@@ -7127,8 +6938,6 @@ export declare function pick<Value extends PlainObject, ValueKey extends keyof V
|
|
|
7127
6938
|
* @returns Shaken object
|
|
7128
6939
|
*/
|
|
7129
6940
|
export declare function shake<Value extends PlainObject>(value: Value): Shaken<Value>;
|
|
7130
|
-
//#endregion
|
|
7131
|
-
//#region src/value/smush.d.ts
|
|
7132
6941
|
/**
|
|
7133
6942
|
* Smush an object into a flat object that uses dot notation keys
|
|
7134
6943
|
*
|
|
@@ -7136,8 +6945,6 @@ export declare function shake<Value extends PlainObject>(value: Value): Shaken<V
|
|
|
7136
6945
|
* @returns Smushed object with dot notation keys
|
|
7137
6946
|
*/
|
|
7138
6947
|
export declare function smush<Value extends PlainObject>(value: Value): Smushed<Value>;
|
|
7139
|
-
//#endregion
|
|
7140
|
-
//#region src/value/unsmush.d.ts
|
|
7141
6948
|
/**
|
|
7142
6949
|
* Unsmush a smushed object _(turning dot notation keys into nested keys)_
|
|
7143
6950
|
*
|
|
@@ -7145,8 +6952,6 @@ export declare function smush<Value extends PlainObject>(value: Value): Smushed<
|
|
|
7145
6952
|
* @returns Unsmushed object with nested keys
|
|
7146
6953
|
*/
|
|
7147
6954
|
export declare function unsmush<Value extends PlainObject>(value: Value): Unsmushed<Value>;
|
|
7148
|
-
//#endregion
|
|
7149
|
-
//#region src/models/value/value.merge.model.d.ts
|
|
7150
6955
|
/**
|
|
7151
6956
|
* Options for assigning values
|
|
7152
6957
|
*/
|
|
@@ -7218,8 +7023,6 @@ type MergingOptions = {
|
|
|
7218
7023
|
skipNullableAny: boolean;
|
|
7219
7024
|
skipNullableInArrays: boolean;
|
|
7220
7025
|
};
|
|
7221
|
-
//#endregion
|
|
7222
|
-
//#region src/value/merge.d.ts
|
|
7223
7026
|
declare function Assigner(this: any, options: MergingOptions): void;
|
|
7224
7027
|
declare function Merger(this: any, options: MergingOptions): void;
|
|
7225
7028
|
/**
|
|
@@ -7263,8 +7066,6 @@ export declare namespace assign {
|
|
|
7263
7066
|
export declare namespace merge {
|
|
7264
7067
|
export var initialize: typeof initializeMerger;
|
|
7265
7068
|
}
|
|
7266
|
-
//#endregion
|
|
7267
|
-
//#region src/models/value/value.transform.model.d.ts
|
|
7268
7069
|
/**
|
|
7269
7070
|
* A callback transform an object's properties
|
|
7270
7071
|
*/
|
|
@@ -7274,8 +7075,6 @@ type TransformCallback<Value extends PlainObject, Key extends keyof Value> = (ke
|
|
|
7274
7075
|
*/
|
|
7275
7076
|
type TransformCallbacks<Value extends PlainObject> = Partial<{ [Key in keyof Value]: (value: Value[Key]) => Value[Key]; }>;
|
|
7276
7077
|
type TransformHandler<Value extends PlainObject> = TransformCallback<Value, keyof Value> | TransformCallbacks<Value>;
|
|
7277
|
-
//#endregion
|
|
7278
|
-
//#region src/value/transform.d.ts
|
|
7279
7078
|
declare function Transformer(this: any, transformer: ReturnType<typeof getTransformHandler>): void;
|
|
7280
7079
|
declare function getTransformHandler<Value extends PlainObject, Key extends keyof Value>(input: unknown): TransformHandler<Value> | undefined;
|
|
7281
7080
|
/**
|
|
@@ -7315,8 +7114,6 @@ export declare function transform<Value extends PlainObject>(value: Value, trans
|
|
|
7315
7114
|
export declare namespace transform {
|
|
7316
7115
|
export var initialize: typeof initializeTransformer;
|
|
7317
7116
|
}
|
|
7318
|
-
//#endregion
|
|
7319
|
-
//#region src/models/subscription.model.d.ts
|
|
7320
7117
|
type Subscription = {
|
|
7321
7118
|
/**
|
|
7322
7119
|
* Is the subscription active?
|
|
@@ -7415,8 +7212,6 @@ type SubscriptionsValuesItem<MapKey, MapValue> = {
|
|
|
7415
7212
|
any: Map<MapKey, MapValue>;
|
|
7416
7213
|
keyed?: Map<Key$1, Map<MapKey, MapValue>>;
|
|
7417
7214
|
};
|
|
7418
|
-
//#endregion
|
|
7419
|
-
//#region src/models/beacon.model.d.ts
|
|
7420
7215
|
/**
|
|
7421
7216
|
* A beacon is a lighthouse, holding an observable value that can be subscribed to and emitted from
|
|
7422
7217
|
*/
|
|
@@ -7514,8 +7309,6 @@ type Observer<Value> = {
|
|
|
7514
7309
|
*/
|
|
7515
7310
|
next?: (value: Value) => void;
|
|
7516
7311
|
};
|
|
7517
|
-
//#endregion
|
|
7518
|
-
//#region src/internal/subscription.d.ts
|
|
7519
7312
|
/**
|
|
7520
7313
|
* Is the value a subscription?
|
|
7521
7314
|
*
|
|
@@ -7537,8 +7330,6 @@ export declare function isSubscriptions(value: unknown): value is Subscriptions;
|
|
|
7537
7330
|
* @returns Subscription store
|
|
7538
7331
|
*/
|
|
7539
7332
|
export declare function subscriptions<Value = unknown>(parameters?: SubscriptionsParameters): Subscriptions<Value>;
|
|
7540
|
-
//#endregion
|
|
7541
|
-
//#region src/beacon.d.ts
|
|
7542
7333
|
declare function Beacon(this: any, value: unknown, options?: BeaconOptions<unknown>): void;
|
|
7543
7334
|
declare function Observable(this: any, beacon: BeaconState<unknown>): void;
|
|
7544
7335
|
/**
|
|
@@ -7570,8 +7361,6 @@ export declare function isBeaconSubscription(value: unknown): value is Subscript
|
|
|
7570
7361
|
* @returns `true` if the value is an observable, otherwise `false`
|
|
7571
7362
|
*/
|
|
7572
7363
|
export declare function isObservable<Value = unknown>(value: unknown): value is Observable<Value>;
|
|
7573
|
-
//#endregion
|
|
7574
|
-
//#region src/models/herald.model.d.ts
|
|
7575
7364
|
type Herald<Events extends Record<string, GenericCallback>> = {
|
|
7576
7365
|
readonly events: HeraldEvents<Events>;
|
|
7577
7366
|
/**
|
|
@@ -7609,8 +7398,6 @@ type HeraldOptions<Events extends Record<string, GenericCallback>> = {
|
|
|
7609
7398
|
property?: SubscriptionProperty;
|
|
7610
7399
|
onCreate?: HeraldOnCreate<Events>;
|
|
7611
7400
|
};
|
|
7612
|
-
//#endregion
|
|
7613
|
-
//#region src/models/color.model.d.ts
|
|
7614
7401
|
/**
|
|
7615
7402
|
* A color that is represented in multiple color formats
|
|
7616
7403
|
*/
|
|
@@ -7882,8 +7669,6 @@ type ColorValue = string | HSLColor | HWBColor | RGBColor;
|
|
|
7882
7669
|
* Extended color values
|
|
7883
7670
|
*/
|
|
7884
7671
|
type ColorValueExtended = ColorValue | HSLAColor | HWBAColor | RGBAColor;
|
|
7885
|
-
//#endregion
|
|
7886
|
-
//#region src/color/misc/get.d.ts
|
|
7887
7672
|
/**
|
|
7888
7673
|
* Get a foreground color _(usually text)_ based on a background color's luminance as an unprefixed hex color string
|
|
7889
7674
|
*
|
|
@@ -7984,8 +7769,6 @@ export declare function getRgbaColor(value: unknown): RGBAColor;
|
|
|
7984
7769
|
* @returns _RGB_ color
|
|
7985
7770
|
*/
|
|
7986
7771
|
export declare function getRgbColor(value: unknown): RGBColor;
|
|
7987
|
-
//#endregion
|
|
7988
|
-
//#region src/color/misc/is.d.ts
|
|
7989
7772
|
/**
|
|
7990
7773
|
* Is the value a _Color_?
|
|
7991
7774
|
*
|
|
@@ -8052,8 +7835,6 @@ export declare function isRgbaColor(value: unknown): value is RGBAColor;
|
|
|
8052
7835
|
* @returns `true` if the value is an _RGB_ color, otherwise `false`
|
|
8053
7836
|
*/
|
|
8054
7837
|
export declare function isRgbColor(value: unknown): value is RGBColor;
|
|
8055
|
-
//#endregion
|
|
8056
|
-
//#region src/color/space/hex.d.ts
|
|
8057
7838
|
/**
|
|
8058
7839
|
* Get the normalized hex color from a value
|
|
8059
7840
|
*
|
|
@@ -8126,8 +7907,6 @@ export declare function hexToRgb(value: string): RGBColor;
|
|
|
8126
7907
|
* @returns _RGBA_ color
|
|
8127
7908
|
*/
|
|
8128
7909
|
export declare function hexToRgba(value: string): RGBAColor;
|
|
8129
|
-
//#endregion
|
|
8130
|
-
//#region src/color/space/hsl.d.ts
|
|
8131
7910
|
/**
|
|
8132
7911
|
* Convert an _HSL(A)_ color to a hex color _(with optional alpha channel, i.e., opacity)_
|
|
8133
7912
|
*
|
|
@@ -8178,8 +7957,6 @@ export declare function hslToRgb(hsl: HSLAColor | HSLColor): RGBColor;
|
|
|
8178
7957
|
* @returns _RGBA_ color
|
|
8179
7958
|
*/
|
|
8180
7959
|
export declare function hslToRgba(hsl: HSLAColor | HSLColor): RGBAColor;
|
|
8181
|
-
//#endregion
|
|
8182
|
-
//#region src/color/space/hwb.d.ts
|
|
8183
7960
|
/**
|
|
8184
7961
|
* Convert an _HWB(A)_ color to a hex color _(with optional alpha channel, i.e., opacity)_
|
|
8185
7962
|
*
|
|
@@ -8226,8 +8003,6 @@ export declare function hwbToRgb(hwb: HWBAColor | HWBColor): RGBColor;
|
|
|
8226
8003
|
* @returns _RGBA_ color
|
|
8227
8004
|
*/
|
|
8228
8005
|
export declare function hwbToRgba(hwb: HWBAColor | HWBColor): RGBAColor;
|
|
8229
|
-
//#endregion
|
|
8230
|
-
//#region src/color/space/rgb.d.ts
|
|
8231
8006
|
/**
|
|
8232
8007
|
* Convert an _RGB(A)_ color to a hex color _(with optional alpha channel, i.e., opacity)_
|
|
8233
8008
|
*
|
|
@@ -8282,8 +8057,6 @@ export declare function rgbToHwb(rgb: RGBAColor | RGBColor): HWBColor;
|
|
|
8282
8057
|
* @returns _HWBA_ color
|
|
8283
8058
|
*/
|
|
8284
8059
|
export declare function rgbToHwba(rgb: RGBAColor | RGBColor): HWBAColor;
|
|
8285
|
-
//#endregion
|
|
8286
|
-
//#region src/color/index.d.ts
|
|
8287
8060
|
/**
|
|
8288
8061
|
* Get a _Color_ from any kind of value
|
|
8289
8062
|
*
|
|
@@ -8294,8 +8067,6 @@ export declare function rgbToHwba(rgb: RGBAColor | RGBColor): HWBAColor;
|
|
|
8294
8067
|
* @returns _Color_ instance
|
|
8295
8068
|
*/
|
|
8296
8069
|
export declare function getColor(value: unknown): Color;
|
|
8297
|
-
//#endregion
|
|
8298
|
-
//#region src/internal/herald.d.ts
|
|
8299
8070
|
/**
|
|
8300
8071
|
* Create a _Herald_ for announcing named events
|
|
8301
8072
|
*
|
|
@@ -8325,8 +8096,6 @@ export declare function isHeraldEvents<Events extends Record<string, GenericCall
|
|
|
8325
8096
|
* @returns `true` if the value is a herald subscription, otherwise `false`
|
|
8326
8097
|
*/
|
|
8327
8098
|
export declare function isHeraldSubscription(value: unknown): value is Subscription;
|
|
8328
|
-
//#endregion
|
|
8329
|
-
//#region src/internal/is.d.ts
|
|
8330
8099
|
/**
|
|
8331
8100
|
* Is the value an array or a plain object?
|
|
8332
8101
|
*
|
|
@@ -8455,8 +8224,6 @@ export declare function isTemplateStringsArray(value: unknown): value is Templat
|
|
|
8455
8224
|
* @returns `true` if the value is a typed array, otherwise `false`
|
|
8456
8225
|
*/
|
|
8457
8226
|
export declare function isTypedArray(value: unknown): value is TypedArray;
|
|
8458
|
-
//#endregion
|
|
8459
|
-
//#region src/is.d.ts
|
|
8460
8227
|
/**
|
|
8461
8228
|
* Is the value empty, or only containing `null` or `undefined` values?
|
|
8462
8229
|
*
|
|
@@ -8541,8 +8308,6 @@ export declare function isNumerical(value: unknown): value is number | `${number
|
|
|
8541
8308
|
* @returns `true` if the value matches, otherwise `false`
|
|
8542
8309
|
*/
|
|
8543
8310
|
export declare function isObject(value: unknown): value is object;
|
|
8544
|
-
//#endregion
|
|
8545
|
-
//#region src/models/logger.model.d.ts
|
|
8546
8311
|
type Lumberjack = {
|
|
8547
8312
|
/**
|
|
8548
8313
|
* Log any number of values at the "debug" log level
|
|
@@ -8611,8 +8376,6 @@ type TimeLogger = {
|
|
|
8611
8376
|
*/
|
|
8612
8377
|
get stop(): () => void;
|
|
8613
8378
|
};
|
|
8614
|
-
//#endregion
|
|
8615
|
-
//#region src/logger.d.ts
|
|
8616
8379
|
declare function TimeLogger(this: any, label: string): void;
|
|
8617
8380
|
/**
|
|
8618
8381
|
* Is the value a _Logger_?
|
|
@@ -8634,8 +8397,6 @@ declare function isTimeLogger(value: unknown): value is TimeLogger;
|
|
|
8634
8397
|
* _(Logging can be enabled or disabled by setting the `enabled` property)_
|
|
8635
8398
|
*/
|
|
8636
8399
|
declare const Logger: Lumberjack;
|
|
8637
|
-
//#endregion
|
|
8638
|
-
//#region src/internal/math/aggregate.d.ts
|
|
8639
8400
|
/**
|
|
8640
8401
|
* Get the maximum value from a list of items
|
|
8641
8402
|
*
|
|
@@ -8812,8 +8573,6 @@ export declare function min<Item extends PlainObject>(items: Item[], key: keyof
|
|
|
8812
8573
|
* ```
|
|
8813
8574
|
*/
|
|
8814
8575
|
export declare function min(values: number[]): number;
|
|
8815
|
-
//#endregion
|
|
8816
|
-
//#region src/internal/math/misc.d.ts
|
|
8817
8576
|
/**
|
|
8818
8577
|
* Round a number down
|
|
8819
8578
|
*
|
|
@@ -8844,8 +8603,6 @@ export declare function floor(value: number, decimals?: number): number;
|
|
|
8844
8603
|
* ```
|
|
8845
8604
|
*/
|
|
8846
8605
|
export declare function round(value: number, decimals?: number): number;
|
|
8847
|
-
//#endregion
|
|
8848
|
-
//#region src/math.d.ts
|
|
8849
8606
|
/**
|
|
8850
8607
|
* Get the average value from a list of items
|
|
8851
8608
|
*
|
|
@@ -9038,8 +8795,6 @@ export declare function sum<Item extends PlainObject>(items: Item[], key: keyof
|
|
|
9038
8795
|
* ```
|
|
9039
8796
|
*/
|
|
9040
8797
|
export declare function sum(values: number[]): number;
|
|
9041
|
-
//#endregion
|
|
9042
|
-
//#region src/internal/number.d.ts
|
|
9043
8798
|
/**
|
|
9044
8799
|
* Is the number between a minimum and maximum value?
|
|
9045
8800
|
*
|
|
@@ -9092,8 +8847,6 @@ export declare function clamp(value: number, minimum: number, maximum: number, l
|
|
|
9092
8847
|
* ```
|
|
9093
8848
|
*/
|
|
9094
8849
|
export declare function getNumber(value: unknown): number;
|
|
9095
|
-
//#endregion
|
|
9096
|
-
//#region src/query.d.ts
|
|
9097
8850
|
/**
|
|
9098
8851
|
* Convert a query string to a plain _(nested)_ object
|
|
9099
8852
|
*
|
|
@@ -9108,8 +8861,6 @@ export declare function fromQuery(query: string): PlainObject;
|
|
|
9108
8861
|
* @returns Query string representation of the object
|
|
9109
8862
|
*/
|
|
9110
8863
|
export declare function toQuery(parameters: PlainObject): string;
|
|
9111
|
-
//#endregion
|
|
9112
|
-
//#region src/models/queue.model.d.ts
|
|
9113
8864
|
/**
|
|
9114
8865
|
* A queue that can be used to manage (a)synchronous tasks with a specific key
|
|
9115
8866
|
*/
|
|
@@ -9302,8 +9053,6 @@ type Queued<Value> = {
|
|
|
9302
9053
|
readonly promise: Promise<Value extends Promise<infer Result> ? Result : Value>;
|
|
9303
9054
|
};
|
|
9304
9055
|
type Tail<Values extends any[]> = Values extends [infer _, ...infer Rest] ? Rest : never;
|
|
9305
|
-
//#endregion
|
|
9306
|
-
//#region src/queue.d.ts
|
|
9307
9056
|
declare function KeyedQueue(this: any, callback: GenericAsyncCallback, options: Required<QueueOptions>): void;
|
|
9308
9057
|
declare function Queue(this: any, callback: GenericAsyncCallback, options: Required<QueueOptions>, key?: string): void;
|
|
9309
9058
|
/**
|
|
@@ -9357,8 +9106,6 @@ export declare function queue<Callback extends GenericCallback>(callback: Callba
|
|
|
9357
9106
|
export declare namespace queue {
|
|
9358
9107
|
export var keyed: typeof keyedQueue;
|
|
9359
9108
|
}
|
|
9360
|
-
//#endregion
|
|
9361
|
-
//#region src/internal/random.d.ts
|
|
9362
9109
|
/**
|
|
9363
9110
|
* Get a random number between 0 _(inclusive)_ and 1 _(exclusive)_
|
|
9364
9111
|
*
|
|
@@ -9381,8 +9128,6 @@ declare function getRandomFloatingNumber(minimum?: number, maximum?: number): nu
|
|
|
9381
9128
|
* @returns Random integer
|
|
9382
9129
|
*/
|
|
9383
9130
|
export declare function getRandomInteger(minimum?: number, maximum?: number): number;
|
|
9384
|
-
//#endregion
|
|
9385
|
-
//#region src/random.d.ts
|
|
9386
9131
|
/**
|
|
9387
9132
|
* Get a random boolean
|
|
9388
9133
|
*
|
|
@@ -9432,8 +9177,6 @@ export declare function getRandomItems<Value>(array: Value[], amount: number): V
|
|
|
9432
9177
|
* @returns Shuffled version of the original array
|
|
9433
9178
|
*/
|
|
9434
9179
|
export declare function getRandomItems<Value>(array: Value[]): Value[];
|
|
9435
|
-
//#endregion
|
|
9436
|
-
//#region src/sized/set.d.ts
|
|
9437
9180
|
/**
|
|
9438
9181
|
* A _Set_ with a maximum size
|
|
9439
9182
|
*
|
|
@@ -9481,5 +9224,4 @@ export declare class SizedSet<Value = unknown> extends Set<Value> {
|
|
|
9481
9224
|
*/
|
|
9482
9225
|
get(value: Value, update?: boolean): Value | undefined;
|
|
9483
9226
|
}
|
|
9484
|
-
//#endregion
|
|
9485
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 };
|