diff --git a/README.md b/README.md index 6e5e31f4..1f37e1df 100644 --- a/README.md +++ b/README.md @@ -181,7 +181,7 @@ declare module "@glint/environment-ember-loose/registry" { #### `@config` -This argument allows you to pass a MachineConfig for [actions](https://xstate.js.org/docs/guides/actions.html), [services](https://xstate.js.org/docs/guides/communication.html#configuring-services), [guards](https://xstate.js.org/docs/guides/guards.html#serializing-guards), etc. +This argument allows you to pass a [MachineOptions](https://xstate.js.org/docs/packages/xstate-fsm/#api) for [actions](https://xstate.js.org/docs/guides/actions.html), [services](https://xstate.js.org/docs/guides/communication.html#configuring-services), [guards](https://xstate.js.org/docs/guides/guards.html#serializing-guards), etc. Usage: diff --git a/ember-statechart-component/src/glint.ts b/ember-statechart-component/src/glint.ts index 56ed5adb..3f976159 100644 --- a/ember-statechart-component/src/glint.ts +++ b/ember-statechart-component/src/glint.ts @@ -8,6 +8,7 @@ import type { EventObject, Interpreter, MachineConfig, + MachineOptions, NoInfer, ResolveTypegenMeta, ServiceMap, @@ -49,7 +50,7 @@ declare module 'xstate' { TResolvedTypesMeta = ResolveTypegenMeta, TAction, TServiceMap> > extends ComponentLike<{ Args: { - config?: MachineConfig; + config?: MachineOptions; context?: TContext; state?: Interpreter['state']; };