<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [ExtractPayload](./x-components.extractpayload.md)

## ExtractPayload type

Extracts the payload from any function with a single parameter.

**Signature:**

```typescript
export type ExtractPayload<SomeFunction> = SomeFunction extends (payload?: any) => any ? Parameters<SomeFunction>[0] : never;
```
