- Bundle robot3 1.3.0 locally (not yet published to npm) - Fix remaining type inference issues with `as any` casts for invoke() events Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
18 lines
464 B
JavaScript
18 lines
464 B
JavaScript
import { d } from './machine.js';
|
|
|
|
d._onEnter = function(machine, to, state, prevState, event) {
|
|
console.log(`Enter state ${to}`);
|
|
console.groupCollapsed(`Details:`);
|
|
console.log(`Machine`, machine);
|
|
console.log(`Current state`, state);
|
|
console.log(`Previous state`, prevState);
|
|
|
|
if (typeof event === "string") {
|
|
console.log(`Event ${event}`);
|
|
} else if (typeof event === "object") {
|
|
console.log(`Event`, event);
|
|
}
|
|
|
|
console.groupEnd();
|
|
}
|