@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 extends string
• S extends StateTree
• G extends _GettersTree
<S
> | {}
• A
• T extends Record
<string
, keyof S
| keyof G
| (store
) => any
> = {}