> ## Documentation Index
> Fetch the complete documentation index at: https://botmesh.afaya.com.co/llms.txt
> Use this file to discover all available pages before exploring further.

# FlowStateMerge<S, T>

> Type alias exported by @botmesh/core.

```ts theme={null}
type FlowStateMerge<S, T> = { [P in keyof S | keyof T]: P extends keyof T ? T[P] : P extends keyof S ? S[P] : never };
```

Defined in: [flows/FlowBuilder.ts:63](https://github.com/andresayac/botmesh/blob/main/packages/core/src/flows/FlowBuilder.ts#L63)

`S` merged with `T` (keys of `T` win) — the state after `.use(subFlow)`.

## Type Parameters

| Type Parameter |
| - |
|  `S` |
|  `T` |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.