Patch Changes
-
599ec3c: Unknown transition targets are now type errors in
setup().createMachine(...), not only increateMachine(...). Targets returned from transition functions are also checked:setup({}).createMachine({ initial: 'a', states: { a: { on: { // Type error: 'bb' is not a state GO: () => ({ target: 'bb' }) } }, b: {} } });
Dynamic (non-literal) string targets are still accepted.