@threadplane/ag-uiTypeAliasv0.3.7

SubmitState

The patch a submission merges into the state document. A session with a declared state type accepts that type's keys; any other accepts a plain record.

import type { SubmitState } from '@threadplane/ag-ui';

Declaration

export type SubmitState<TState = unknown> = unknown extends TState ? ApplicationState : Partial<TState>;

Type parameters

TState
Default: unknown