- logTransitions<S, C, D>(context, stateMachine, name): void
-
Type Parameters
-
S extends string
-
C extends ExecutionContext<{
state: {
UnsubscribedError: typeof UnsubscribedError;
create: (<Data, Modifiers>(initialValue, modifiers) => StateAtom<Data, Modifiers>);
dispatch: (<Modifier>(modifier, ...payload) => void);
subscribe: (<Ctx, Atom, A>(context, atom, task, errorCallback?) => Unsubscribe);
};
} & {
events: {
subscribe: (<Ctx, Element_1, EventKey>(context, element, event, subscriber) => Unsubscribe);
};
} & {
loop: ((signal) => Promise<void>);
} & {
timeout: ((signal, durationMs) => Abortable<void>);
} & {
abortable: (<T>(callback) => Abortable<T>);
} & {
logger: Logger;
}, EmptyObject, C>
-
D = void
Parameters
-
context: ContextWithStateAndLogger
-
-
name: string
Returns void