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;
};