• Create a store for a property value in an object contained in another store. Read more...

    Type Parameters

    • O extends object
    • K extends string | number | symbol

    Parameters

    • origin: MinimalWritable<O>

      The store containing the object to get/set from.

    • propName: K | [K]

      The property to get/set, or a path of properties in nested objects.

    Returns Writable<O[K]>

    A writable store.

  • Type Parameters

    • O extends object
    • K1 extends string | number | symbol
    • K2 extends string | number | symbol

    Parameters

    Returns Writable<O[K1][K2]>

  • Type Parameters

    • O extends object
    • K1 extends string | number | symbol
    • K2 extends string | number | symbol
    • K3 extends string | number | symbol

    Parameters

    Returns Writable<O[K1][K2][K3]>

  • Type Parameters

    • O extends object
    • K1 extends string | number | symbol
    • K2 extends string | number | symbol
    • K3 extends string | number | symbol
    • K4 extends string | number | symbol

    Parameters

    Returns Writable<O[K1][K2][K3][K4]>

  • Parameters

    • origin: MinimalWritable<object>
    • propName:
          | string
          | number
          | symbol
          | (string | number | symbol)[]

    Returns Writable<any>