Comparing version 5.0.0-beta.0 to 5.0.0-beta.1
@@ -6,3 +6,3 @@ { | ||
"type": "commonjs", | ||
"version": "5.0.0-beta.0", | ||
"version": "5.0.0-beta.1", | ||
"publishConfig": { | ||
@@ -9,0 +9,0 @@ "tag": "next" |
@@ -5,5 +5,5 @@ import type { Mutate, StateCreator, StoreApi, StoreMutatorIdentifier } from './vanilla'; | ||
} ? T : never; | ||
type ReadonlyStoreApi<T> = Pick<StoreApi<T>, 'getState' | 'subscribe'>; | ||
export declare function useStore<S extends StoreApi<unknown>>(api: S): ExtractState<S>; | ||
export declare function useStore<S extends StoreApi<unknown>, U>(api: S, selector: (state: ExtractState<S>) => U): U; | ||
type ReadonlyStoreApi<T> = Pick<StoreApi<T>, 'getState' | 'getInitialState' | 'subscribe'>; | ||
export declare function useStore<S extends ReadonlyStoreApi<unknown>>(api: S): ExtractState<S>; | ||
export declare function useStore<S extends ReadonlyStoreApi<unknown>, U>(api: S, selector: (state: ExtractState<S>) => U): U; | ||
export type UseBoundStore<S extends ReadonlyStoreApi<unknown>> = { | ||
@@ -10,0 +10,0 @@ (): ExtractState<S>; |
@@ -5,5 +5,5 @@ import type { Mutate, StateCreator, StoreApi, StoreMutatorIdentifier } from './vanilla'; | ||
} ? T : never; | ||
type ReadonlyStoreApi<T> = Pick<StoreApi<T>, 'getState' | 'subscribe'>; | ||
export declare function useStoreWithEqualityFn<S extends StoreApi<unknown>>(api: S): ExtractState<S>; | ||
export declare function useStoreWithEqualityFn<S extends StoreApi<unknown>, U>(api: S, selector: (state: ExtractState<S>) => U, equalityFn?: (a: U, b: U) => boolean): U; | ||
type ReadonlyStoreApi<T> = Pick<StoreApi<T>, 'getState' | 'getInitialState' | 'subscribe'>; | ||
export declare function useStoreWithEqualityFn<S extends ReadonlyStoreApi<unknown>>(api: S): ExtractState<S>; | ||
export declare function useStoreWithEqualityFn<S extends ReadonlyStoreApi<unknown>, U>(api: S, selector: (state: ExtractState<S>) => U, equalityFn?: (a: U, b: U) => boolean): U; | ||
export type UseBoundStoreWithEqualityFn<S extends ReadonlyStoreApi<unknown>> = { | ||
@@ -10,0 +10,0 @@ (): ExtractState<S>; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
87408