@zag-js/store 1.15.7 → 1.17.0

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/dist/index.d.mts CHANGED
@@ -17,7 +17,7 @@ type Ref<T> = T & AsRef;
17
17
  declare function proxyWithComputed<T extends object, U extends object>(initialObject: T, computedFns: {
18
18
  [K in keyof U]: ((snap: Snapshot<T>) => U[K]) | {
19
19
  get: (snap: Snapshot<T>) => U[K];
20
- set?: (state: T, newValue: U[K]) => void;
20
+ set?: ((state: T, newValue: U[K]) => void) | undefined;
21
21
  };
22
22
  }): T & U;
23
23
 
package/dist/index.d.ts CHANGED
@@ -17,7 +17,7 @@ type Ref<T> = T & AsRef;
17
17
  declare function proxyWithComputed<T extends object, U extends object>(initialObject: T, computedFns: {
18
18
  [K in keyof U]: ((snap: Snapshot<T>) => U[K]) | {
19
19
  get: (snap: Snapshot<T>) => U[K];
20
- set?: (state: T, newValue: U[K]) => void;
20
+ set?: ((state: T, newValue: U[K]) => void) | undefined;
21
21
  };
22
22
  }): T & U;
23
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/store",
3
- "version": "1.15.7",
3
+ "version": "1.17.0",
4
4
  "description": "The reactive store package for zag machines",
5
5
  "keywords": [
6
6
  "js",