Skip to content

Type Alias: StoreCreator()<T>

StoreCreator<T> = (settings?, enhancer?) => Store<T>

Defined in: types.ts:313

Type definition for a function that creates a store instance.

Type Parameters

T

T = any

The type of the state managed by the store.

Parameters

settings?

StoreSettings

Optional settings for the store, such as dispatch behavior or feature toggles.

enhancer?

StoreEnhancer

Optional enhancer function to extend or modify the store's functionality.

Returns

Store<T>

The created store instance with methods for managing state and actions.

Released under the MIT License.