breaking(types): drop deprecated UseStore type (#596)

* fix(types): Rename from UseStore to UseBoundStore

* breaking(types): drop deprecated UseStore type

* empty commit
This commit is contained in:
Daishi Kato 2022-04-07 23:47:58 +09:00 committed by GitHub
parent c99bbcd4ad
commit 34bf82bf27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,17 +24,6 @@ const isSSR =
const useIsomorphicLayoutEffect = isSSR ? useEffect : useLayoutEffect
/**
* @deprecated Please use UseBoundStore instead
*/
export type UseStore<
T extends State,
CustomStoreApi extends StoreApi<T> = StoreApi<T>
> = {
(): T
<U>(selector: StateSelector<T, U>, equalityFn?: EqualityChecker<U>): U
} & CustomStoreApi
export type UseBoundStore<
T extends State,
CustomStoreApi extends StoreApi<T> = StoreApi<T>