Skip to content

@pinia/root / pinia / _MapWritableStateObjectReturn

_MapWritableStateObjectReturn<S, G, KeyMapper>

ts
type _MapWritableStateObjectReturn<S, G, KeyMapper> = { [key in keyof KeyMapper]: { get: () => UnwrapRef<(S & G)[KeyMapper[key]]>; set: (value: UnwrapRef<(S & G)[KeyMapper[key]]>) => any } };

For internal use only

Type Parameters

S extends StateTree

G

KeyMapper extends Record<string, _MapWritableStateKeys<S, G>>

Released under the MIT License.