watch-state 3.6.1 → 3.6.2

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.
Files changed (2) hide show
  1. package/State/State.d.ts +1 -1
  2. package/package.json +1 -1
package/State/State.d.ts CHANGED
@@ -31,7 +31,7 @@ export declare class State<T = unknown> extends Observable<T> {
31
31
  * const isChanged = count.initial === count.raw
32
32
  */
33
33
  readonly initial: T;
34
- constructor(...args: T extends undefined ? [T?] : [T]);
34
+ constructor(...args: undefined extends T ? [T?] : [T]);
35
35
  /**
36
36
  * Current state value. Updates watchers only on actual changes (strict `!==`).
37
37
  * Using `value` inside a `Watch` callback automatically subscribes to changes.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "watch-state",
3
- "version": "3.6.1",
3
+ "version": "3.6.2",
4
4
  "description": "CANT inc. state management system.",
5
5
  "author": "Mikhail Lysikov <d8corp@mail.ru>",
6
6
  "license": "MIT",