Socket
Socket
Sign inDemoInstall

zustand

Package Overview
Dependencies
Maintainers
0
Versions
140
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zustand - npm Package Compare versions

Comparing version 5.0.0-beta.0 to 5.0.0-beta.1

2

package.json

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc