phone/packages/robot3/logging.js
Corey Johnson 24a726b829 Upgrade robot3 to 1.3.0 for improved TypeScript support
- Bundle robot3 1.3.0 locally (not yet published to npm)
- Fix remaining type inference issues with `as any` casts for invoke() events
- Resolves state machine transition type errors

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 14:33:47 -08:00

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