Comparing version 1.7.2 to 1.7.3
@@ -0,1 +1,5 @@ | ||
## 1.7.3 | ||
[TypeScript] Minor type updates for calling `useStore()` directly on one of your stores, so that the "sub-state" function gets the store's state interface correctly. | ||
## 1.7.2 | ||
@@ -2,0 +6,0 @@ |
@@ -40,4 +40,4 @@ import { Patch, PatchListener } from "immer"; | ||
getRawState(): S; | ||
useState<S = any>(): S; | ||
useState<S = any, SS = any>(getSubState: (state: S) => SS): SS; | ||
useState(): S; | ||
useState<SS = any>(getSubState: (state: S) => SS): SS; | ||
update(updater: TUpdateFunction<S> | TUpdateFunction<S>[], patchesCallback?: (patches: Patch[], inversePatches: Patch[]) => void): void; | ||
@@ -44,0 +44,0 @@ applyPatches(patches: Patch[]): void; |
{ | ||
"name": "pullstate", | ||
"version": "1.7.2", | ||
"version": "1.7.3", | ||
"description": "Simple state stores using immer and React hooks", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
116919