@empathyco/x-components
Version:
Empathy X Components
19 lines (12 loc) • 721 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [PayloadFactoryData](./x-components.payloadfactorydata.md)
## PayloadFactoryData type
Type not safe which allows the access to the State, the Getters, the payload and metadata of a [XStoreModule](./x-components.xstoremodule.md)<!-- -->.
**Signature:**
```typescript
export type PayloadFactoryData<Payload> = RootStoreStateAndGetters & {
eventPayload: Payload;
metadata: WireMetadata;
};
```
**References:** [RootStoreStateAndGetters](./x-components.rootstorestateandgetters.md)<!-- -->, [WireMetadata](./x-components.wiremetadata.md)