declareStore
Callable
Type parameters
- State
- Updates: Readonly<Record<string, (...args: any[]) => StateMutation<State>>> = Readonly<Record<string, (...args: any[]) => StateMutation<State>>>
Parameters
storeOptions: Readonly<{ initialState: State; options?: AtomOptions<State>; updates: Updates }>
Returns StoreFactory<State, Updates>
declare the base interface for create store