Skip to content
Version: xstate@5.0.0

Observer type​

Signature:

export type Observer<T> = {
next?: (value: T) => void;
error?: (err: unknown) => void;
complete?: () => void;
};