Skip to content

Commit 34bf82b

Browse files
authored
breaking(types): drop deprecated UseStore type (#596)
* fix(types): Rename from UseStore to UseBoundStore * breaking(types): drop deprecated UseStore type * empty commit
1 parent c99bbcd commit 34bf82b

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

src/react.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,6 @@ const isSSR =
2424

2525
const useIsomorphicLayoutEffect = isSSR ? useEffect : useLayoutEffect
2626

27-
/**
28-
* @deprecated Please use UseBoundStore instead
29-
*/
30-
export type UseStore<
31-
T extends State,
32-
CustomStoreApi extends StoreApi<T> = StoreApi<T>
33-
> = {
34-
(): T
35-
<U>(selector: StateSelector<T, U>, equalityFn?: EqualityChecker<U>): U
36-
} & CustomStoreApi
37-
3827
export type UseBoundStore<
3928
T extends State,
4029
CustomStoreApi extends StoreApi<T> = StoreApi<T>

0 commit comments

Comments
 (0)