@@ -270,7 +270,7 @@ export function getDelayedTransitions(
270270 typeof configTransition === 'string'
271271 ? { target : configTransition }
272272 : typeof configTransition === 'function'
273- ? { fn : configTransition }
273+ ? { to : configTransition }
274274 : configTransition ;
275275 const resolvedDelay = Number . isNaN ( + delay ) ? delay : + delay ;
276276 const eventType = mutateEntryExitWithDelay ( resolvedDelay ) ;
@@ -1254,7 +1254,7 @@ export function getTransitionResult(
12541254 reenter ?: boolean ;
12551255 internalEvents : EventObject [ ] | undefined ;
12561256} {
1257- if ( transition . fn ) {
1257+ if ( transition . to ) {
12581258 const actions : UnknownAction [ ] = [ ] ;
12591259 const internalEvents : EventObject [ ] = [ ] ;
12601260 const enqueue = createEnqueueObject (
@@ -1339,7 +1339,7 @@ export function getTransitionResult(
13391339 }
13401340 ) ;
13411341
1342- const res = transition . fn (
1342+ const res = transition . to (
13431343 {
13441344 context : snapshot . context ,
13451345 event,
@@ -2167,7 +2167,7 @@ export function hasEffect(
21672167 snapshot : AnyMachineSnapshot ,
21682168 self : AnyActorRef
21692169) : boolean {
2170- if ( transition . fn ) {
2170+ if ( transition . to ) {
21712171 let hasEffect = false ;
21722172 let res ;
21732173
@@ -2176,7 +2176,7 @@ export function hasEffect(
21762176 hasEffect = true ;
21772177 throw new Error ( 'Effect triggered' ) ;
21782178 } ;
2179- res = transition . fn (
2179+ res = transition . to (
21802180 {
21812181 context,
21822182 event,
@@ -2224,7 +2224,7 @@ export function evaluateCandidate(
22242224 stateNode : AnyStateNode ,
22252225 self : AnyActorRef
22262226) : boolean {
2227- if ( candidate . fn ) {
2227+ if ( candidate . to ) {
22282228 let hasEffect = false ;
22292229 let res ;
22302230 const context = snapshot . context ;
@@ -2234,7 +2234,7 @@ export function evaluateCandidate(
22342234 hasEffect = true ;
22352235 throw new Error ( 'Effect triggered' ) ;
22362236 } ;
2237- res = candidate . fn (
2237+ res = candidate . to (
22382238 {
22392239 context,
22402240 event,
0 commit comments