hunk.code_window:   TEvent extends EventObject
   >(
     event: TEvent['type'] | typeof NULL_EVENT | '*',
     configLike: SingleOrArray<
       | TransitionConfig<TContext, TEvent>
       | TransitionConfigTarget<TContext, TEvent>
     >
   ): Array<
     TransitionConfig<TContext, TEvent> & {
       event: TEvent['type'] | typeof NULL_EVENT | '*';
     }
  
hunk.labels: keep keep keep keep replace replace keep keep keep keep keep
hunk.after_edit:     TransitionConfig<TContext, TEvent> | TransitionConfigTarget
  
hunk.file_path: packages/core/src/utils.ts
hunk.type: replace
file: import { createMachine, assign } from 'xstate';
  
  export default createMachine<any>({
    initial: 'a',
    context: {
      x: undefined
    },
    states: {
      a: {
        id: 'a',
        entry: [assign({ x: -1 }), assign({ x: 99 })],
        on: {
          t: {
            target: 'b',
            guard: (ctx) => {
              return ctx.x === 99;
            },
            actions: assign({
              x: (ctx) => ctx.x + 1
            })
          }
        }
      },
      b: {
        // entry: ctx => {
        //   ctx.x *= 2;
        // },
        entry: assign({
          x: (ctx) => ctx.x * 2
        }),
        always: [
          {
            target: 'c',
            guard: (ctx) => ctx.x === 200
          },
          { target: 'f' }
        ]
      },
      c: {
        id: 'c'
      },
      f: {}
    }
  });
  