Minor Changes
-
#4181
70bd8d06f
Thanks @davidkpiano! - You can now specify guard types for machines:createMachine({ types: {} as { guards: | { type: 'isGreaterThan'; params: { count: number; }; } | { type: 'plainGuard' }; } // ... });
Patch Changes
-
#4206
e7b59493a
Thanks @Andarist! - Fixed type-related issue that prevented guardsnot('checkFoo')
from being used in machines. -
#4210
5d19c5a75
Thanks @Andarist! - Allow the types to flow frompure
toraise
that it returns. It now should properly raise errors on attempts to raise non-defined events and it should allow all defined events to be raised.