@rimbu/common 0.9.0 → 0.9.1

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.
@@ -4,7 +4,7 @@ exports.CollectFun = void 0;
4
4
  var CollectFun;
5
5
  (function (CollectFun) {
6
6
  /**
7
- * Indicates, when returned from a collect function, to skip the vale.
7
+ * Indicates, when returned from a collect function, to skip the value.
8
8
  */
9
9
  CollectFun.Skip = Symbol('Skip');
10
10
  })(CollectFun = exports.CollectFun || (exports.CollectFun = {}));
@@ -4,7 +4,7 @@ exports.Update = void 0;
4
4
  /**
5
5
  * Returns the result of given `update` parameter, where it can either directly give a new value,
6
6
  * or it is a function receiving the given `value`, and returns a new value.
7
- * @param value - the current vale
7
+ * @param value - the current value
8
8
  * @param update - an `Update` value, either a new value or a function receiving the old value
9
9
  * and returning a new one.
10
10
  * @example
@@ -1,7 +1,7 @@
1
1
  export var CollectFun;
2
2
  (function (CollectFun) {
3
3
  /**
4
- * Indicates, when returned from a collect function, to skip the vale.
4
+ * Indicates, when returned from a collect function, to skip the value.
5
5
  */
6
6
  CollectFun.Skip = Symbol('Skip');
7
7
  })(CollectFun || (CollectFun = {}));
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Returns the result of given `update` parameter, where it can either directly give a new value,
3
3
  * or it is a function receiving the given `value`, and returns a new value.
4
- * @param value - the current vale
4
+ * @param value - the current value
5
5
  * @param update - an `Update` value, either a new value or a function receiving the old value
6
6
  * and returning a new one.
7
7
  * @example
@@ -10,11 +10,11 @@ import type { MaybePromise } from './internal';
10
10
  export declare type CollectFun<T, R> = (value: T, index: number, skip: CollectFun.Skip, halt: () => void) => R | CollectFun.Skip;
11
11
  export declare namespace CollectFun {
12
12
  /**
13
- * Indicates, when returned from a collect function, to skip the vale.
13
+ * Indicates, when returned from a collect function, to skip the value.
14
14
  */
15
15
  const Skip: unique symbol;
16
16
  /**
17
- * Indicates, when returned from a collect function, to skip the vale.
17
+ * Indicates, when returned from a collect function, to skip the value.
18
18
  */
19
19
  type Skip = typeof Skip;
20
20
  }
@@ -5,7 +5,7 @@ export declare type Update<T> = T | ((value: T) => T);
5
5
  /**
6
6
  * Returns the result of given `update` parameter, where it can either directly give a new value,
7
7
  * or it is a function receiving the given `value`, and returns a new value.
8
- * @param value - the current vale
8
+ * @param value - the current value
9
9
  * @param update - an `Update` value, either a new value or a function receiving the old value
10
10
  * and returning a new one.
11
11
  * @example
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rimbu/common",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "Common types and objects used in many other Rimbu packages",
5
5
  "keywords": [
6
6
  "common",
@@ -63,5 +63,5 @@
63
63
  "dependencies": {
64
64
  "tslib": "^2.3.1"
65
65
  },
66
- "gitHead": "7c60bf40f3479524fa9d603a75b33f914d2feb28"
66
+ "gitHead": "f44e1b43f07ac973555270806bbdde5f06400941"
67
67
  }
package/src/collect.ts CHANGED
@@ -17,12 +17,12 @@ export type CollectFun<T, R> = (
17
17
 
18
18
  export namespace CollectFun {
19
19
  /**
20
- * Indicates, when returned from a collect function, to skip the vale.
20
+ * Indicates, when returned from a collect function, to skip the value.
21
21
  */
22
22
  export const Skip = Symbol('Skip');
23
23
 
24
24
  /**
25
- * Indicates, when returned from a collect function, to skip the vale.
25
+ * Indicates, when returned from a collect function, to skip the value.
26
26
  */
27
27
  export type Skip = typeof Skip;
28
28
  }
package/src/update.ts CHANGED
@@ -6,7 +6,7 @@ export type Update<T> = T | ((value: T) => T);
6
6
  /**
7
7
  * Returns the result of given `update` parameter, where it can either directly give a new value,
8
8
  * or it is a function receiving the given `value`, and returns a new value.
9
- * @param value - the current vale
9
+ * @param value - the current value
10
10
  * @param update - an `Update` value, either a new value or a function receiving the old value
11
11
  * and returning a new one.
12
12
  * @example