Function propertyStore
- propertyStore<O extends object, K extends string | number | symbol>(
origin: MinimalWritable<O>,
propName: K | [K],
): Writable<O[K]> Type Parameters
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.
- origin: MinimalWritable<O>
- propertyStore<
O extends object,
K1 extends string | number | symbol,
K2 extends string | number | symbol,
>(
origin: MinimalWritable<O>,
propName: [K1, K2],
): Writable<O[K1][K2]> Create a store for a property value in an object contained in another store. Read more...
Type Parameters
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.
- origin: MinimalWritable<O>
- propertyStore<
O extends object,
K1 extends string | number | symbol,
K2 extends string | number | symbol,
K3 extends string | number | symbol,
>(
origin: MinimalWritable<O>,
propName: [K1, K2, K3],
): Writable<O[K1][K2][K3]> Create a store for a property value in an object contained in another store. Read more...
Type Parameters
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.
- origin: MinimalWritable<O>
- propertyStore<
O extends object,
K1 extends string | number | symbol,
K2 extends string | number | symbol,
K3 extends string | number | symbol,
K4 extends string | number | symbol,
>(
origin: MinimalWritable<O>,
propName: [K1, K2, K3, K4],
): Writable<O[K1][K2][K3][K4]> Create a store for a property value in an object contained in another store. Read more...
Type Parameters
Parameters
Returns Writable<O[K1][K2][K3][K4]>
A writable store.
- propertyStore(
origin: MinimalWritable<object>,
propName: string | number | symbol | (string | number | symbol)[],
): Writable<any> 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.
- origin: MinimalWritable<object>
Create a store for a property value in an object contained in another store. Read more...