@dereekb/util 10.0.13 → 10.0.15

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.13",
3
+ "version": "10.0.15",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./src/index.d.ts",
@@ -1,7 +1,9 @@
1
1
  /**
2
2
  * A function that returns the input value.
3
3
  *
4
+ * Is an alias of the mapIdentityFunction, so it will return true when passed to isMapIdentityFunction().
5
+ *
4
6
  * @param input
5
7
  * @returns
6
8
  */
7
- export declare function passThrough<T>(input: T): T;
9
+ export declare const passThrough: <T>(input: T) => T;
@@ -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
  /**
@@ -39,7 +39,7 @@ export type ApplyMapFunction<I, O> = (input: I, target?: Maybe<Partial<O>>) => O
39
39
  */
40
40
  export type ApplyMapFunctionWithOptions<I, O, C> = (input: I, target?: Maybe<Partial<O>>, options?: Maybe<C>) => O;
41
41
  export declare function mapArrayFunction<I, O>(mapFunction: MapFunction<I, O>): MapArrayFunction<MapFunction<I, O>>;
42
- export declare const MAP_IDENTITY: (input: unknown) => unknown;
42
+ export declare const MAP_IDENTITY: <T>(input: T) => T;
43
43
  export declare function mapIdentityFunction<T>(): MapFunction<T, T>;
44
44
  export declare function isMapIdentityFunction(fn: unknown): fn is typeof MAP_IDENTITY;
45
45
  export type MapFunctionOutputPair<O, I = unknown> = {
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.15](https://github.com/dereekb/dbx-components/compare/v10.0.14-dev...v10.0.15) (2024-02-03)
6
+
7
+
8
+
9
+ ## [10.0.14](https://github.com/dereekb/dbx-components/compare/v10.0.13-dev...v10.0.14) (2024-01-31)
10
+
11
+
12
+
5
13
  ## [10.0.13](https://github.com/dereekb/dbx-components/compare/v10.0.12-dev...v10.0.13) (2024-01-29)
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.13",
3
+ "version": "10.0.15",
4
4
  "type": "commonjs",
5
5
  "peerDependencies": {
6
6
  "@dereekb/util": "*"