@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/util",
3
- "version": "10.0.14",
3
+ "version": "10.0.16",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./src/index.d.ts",
@@ -7,6 +7,8 @@ import { type Maybe } from '../value/maybe.type';
7
7
  export type NumberString = string;
8
8
  /**
9
9
  * Number that represents a percent.
10
+ *
11
+ * e.g. 5 = 0.05 = 5%
10
12
  */
11
13
  export type PercentNumber = number;
12
14
  /**
@@ -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
 
package/test/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/util/test",
3
- "version": "10.0.14",
3
+ "version": "10.0.16",
4
4
  "type": "commonjs",
5
5
  "peerDependencies": {
6
6
  "@dereekb/util": "*"