Forest.js Core Documentation - v1.2.3
    Preparing search index...

    Type Alias StoreMap<T>

    StoreMap: { [K in keyof T]: Store<T[K]> }

    Map of named stores. Allows organizing multiple stores under a single object.

    Type Parameters

    • T = any

      Optional type for the store values

    const firstStore = createStore({ value: "Hello" });
    const secondStore = createStore({ value: "World" });
    const storeMap: StoreMap<{ first: string, second: string }> = {
    first: firstStore,
    second: secondStore
    };