<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [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)

