• 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.

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

    Type Parameters

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

    Parameters

    • origin: MinimalWritable<O>

      The store containing the object to get/set from.

    • propName: [K1, K2]

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

    Returns Writable<O[K1][K2]>

    A writable store.

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

    Type Parameters

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

    Parameters

    • origin: MinimalWritable<O>

      The store containing the object to get/set from.

    • propName: [K1, K2, K3]

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

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

    A writable store.

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

    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

    • origin: MinimalWritable<O>

      The store containing the object to get/set from.

    • propName: [K1, K2, K3, K4]

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

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

    A writable store.

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

    Parameters

    • origin: MinimalWritable<object>

      The store containing the object to get/set from.

    • propName: string | number | symbol | (string | number | symbol)[]

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

    Returns Writable<any>

    A writable store.