@empathyco/x-components
Version:
Empathy X Components
18 lines (11 loc) • 686 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [GettersTree](./x-components.getterstree.md)
## GettersTree type
Type safe getters definition type. An object with this type is what it is needed to define [Vuex](https://vuex.vuejs.org/) getters.
**Signature:**
```typescript
export type GettersTree<State extends Dictionary, Getters extends Dictionary> = {
[Key in keyof Getters]: (state: State, getters: Getters, rootState: RootXStoreState, rootGetters: any) => Getters[Key];
};
```
**References:** [RootXStoreState](./x-components.rootxstorestate.md)