Skip to content

xstate@6.0.0-alpha.11

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 28 Jun 01:22
· 4 commits to main since this release
b293c0f

Patch Changes

  • 57e8d85: Machines that declare schemas.output now type-check top-level final state
    output values against the machine output type.

    createMachine({
      schemas: {
        output: types<{ status: 'ok' }>()
      },
      initial: 'done',
      states: {
        done: {
          type: 'final',
          output: { status: 'ok' }
        }
      },
      output: ({ event }) => event.output
    });