Store itself with Context, Provider and hooks, all connected to on store type.

interface Store<TStore> {
    Type: TStore;
    useStore(): TStore["props"] & TStore["values"];
    useStore$(): null | TStore["props"] & TStore["values"];
    useSelector<TValue>(selector): TValue;
    useSelector$<TValue>(selector): null | TValue;
}

Type Parameters

  • TStore extends IStore<any>

    Store definition (props & values).

Methods

Properties

Type: TStore

Proxy property, only used to provide a store type.