• Creates a new Store from accessor and index.

    Type Parameters

    • S

    • A

    Parameters

    • accessor: ((s) => A)

      The accessor function.

        • (s): A
        • Parameters

          • s: S

          Returns A

    Returns ((index) => Store<S, A>)

    The new store.

      • (index): Store<S, A>
      • Parameters

        • index: S

        Returns Store<S, A>

Generated using TypeDoc