Skip to content

@pinia/root / pinia / _MapStateObjectReturn

_MapStateObjectReturn<Id, S, G, A, T>

ts
type _MapStateObjectReturn<Id, S, G, A, T> = { [key in keyof T]: () => T[key] extends (store: any) => infer R ? R : T[key] extends keyof Store<Id, S, G, A> ? Store<Id, S, G, A>[T[key]] : never };

For internal use only

Type Parameters

Id

Id extends string

S

S extends StateTree

G

G extends | _GettersTree<S> | { [key: string]: ComputedRef<any>; }

A

A

T

T extends Record<string, keyof S | keyof G | (store) => any> = { }

Released under the MIT License.