Patch Changes
-
#5712
8614c4dThanks @crishoj! -AnyStateNodeandAnyStateNodeDefinitionnow widen theTStateMetaandTTransitionMetaparameters that were added toStateNodeandStateNodeDefinitionin 5.33.0. Those parameters default toMetaObject, while the nodes of anAnyStateMachinehave them asany, so tooling that tracksany(such as@typescript-eslint'sno-unsafe-argumentandno-unsafe-return) reported every node read off an untyped machine as unsafe:declare const machine: AnyStateMachine; // StateNode<any, any, any, any> passed to StateNode<any, any, MetaObject, MetaObject> takesStateNode(machine.root);
AnyTransitionDefinitionwas widened along with the new parameters; these two were missed.