UNPKG

@sandstack/neuron

Version:

Neuron is a lightweight framework agnostic global state manager for Javascript apps, with React support

3 lines (2 loc) 335 B
import { NeuronInstance, NeuronOptions } from "../core"; export declare const neuron: <T, A = unknown>(initialState: T, options?: NeuronOptions<T, A> | undefined, clientNeuron?: NeuronInstance) => <S>(slice?: ((state: T) => S) | undefined) => [import("./useSubscriber").StateOrSlice<S, T>, import("./useSubscriber").Actions<T, S, A>];