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