@dereekb/util 10.0.14 → 10.0.16
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/fetch/CHANGELOG.md +8 -0
- package/fetch/package.json +1 -1
- package/index.cjs.js +168 -205
- package/index.esm.js +180 -206
- package/package.json +1 -1
- package/src/lib/number/number.d.ts +2 -0
- package/src/lib/value/decision.d.ts +9 -0
- package/test/CHANGELOG.md +8 -0
- package/test/package.json +1 -1
package/package.json
CHANGED
|
@@ -24,3 +24,12 @@ export declare const invertDecision: <F extends DecisionFunction<any>>(fn: F, in
|
|
|
24
24
|
* @returns
|
|
25
25
|
*/
|
|
26
26
|
export declare function asDecisionFunction<T = unknown>(valueOrFunction: Maybe<boolean | DecisionFunction<T>>, defaultIfUndefined?: boolean): DecisionFunction<T>;
|
|
27
|
+
/**
|
|
28
|
+
* Creates a DecisionFunction from the input. If the input is not a function then that value is returned.
|
|
29
|
+
*
|
|
30
|
+
* If the input is
|
|
31
|
+
*
|
|
32
|
+
* @param equalityValue
|
|
33
|
+
* @returns
|
|
34
|
+
*/
|
|
35
|
+
export declare function isEqualToValueDecisionFunction<T>(equalityValue: T | DecisionFunction<T>): T extends DecisionFunction<T> ? T : DecisionFunction<T>;
|
package/test/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [10.0.16](https://github.com/dereekb/dbx-components/compare/v10.0.15-dev...v10.0.16) (2024-02-05)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## [10.0.15](https://github.com/dereekb/dbx-components/compare/v10.0.14-dev...v10.0.15) (2024-02-03)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
5
13
|
## [10.0.14](https://github.com/dereekb/dbx-components/compare/v10.0.13-dev...v10.0.14) (2024-01-31)
|
|
6
14
|
|
|
7
15
|
|