Skip to content
Version: xstate@5.0.0

Snapshot type​

Signature:

export type Snapshot<TOutput> = {
status: 'active';
output: undefined;
error: undefined;
} | {
status: 'done';
output: TOutput;
error: undefined;
} | {
status: 'error';
output: undefined;
error: unknown;
} | {
status: 'stopped';
output: undefined;
error: undefined;
};