hunk.code_window:   }
   > {
     const transitions = toArrayStrict(configLike).map((transitionLike) => {
       if (
         typeof transitionLike === 'undefined' ||
         typeof transitionLike === 'string' ||
         isStateMachine(transitionLike)
       ) {
         return { target: transitionLike, event };
       }
  
hunk.labels: keep keep keep keep keep replace replace keep keep keep keep
hunk.after_edit:       typeof transitionLike === 'string'
  
hunk.file_path: packages/core/src/utils.ts
hunk.type: replace
file: import { EventObject, SingleOrArray, MachineContext } from '../types';
  import { pure as pureActionType } from '../actionTypes';
  import { createDynamicAction } from '../../actions/dynamicAction';
  import {
    BaseActionObject,
    BaseDynamicActionObject,
    DynamicPureActionObject,
    PureActionObject
  } from '..';
  import { toArray } from '../utils';
  
  export function pure<
    TContext extends MachineContext,
    TEvent extends EventObject
  >(
    getActions: (
      context: TContext,
      event: TEvent
    ) => SingleOrArray<BaseActionObject> | undefined
  ): BaseDynamicActionObject<
    TContext,
    TEvent,
    PureActionObject,
    DynamicPureActionObject<TContext, TEvent>['params']
  > {
    return createDynamicAction(
      {
        type: pureActionType,
        params: {
          get: getActions
        }
      },
      (_event, { state }) => {
        return [
          state,
          {
            type: pureActionType,
            params: {
              actions: toArray(getActions(state.context, _event.data)) ?? []
            }
          }
        ];
      }
    );
  }
  