Remove the unsupported machine implementation types from useActorRef
's signature
#8597
Annotations
8 errors
build:
packages/xstate-react/test/typegenTypes.test.tsx#L272
Unused '@ts-expect-error' directive.
|
build:
packages/xstate-react/test/typegenTypes.test.tsx#L302
Unused '@ts-expect-error' directive.
|
build:
packages/xstate-react/test/typegenTypes.test.tsx#L308
Unused '@ts-expect-error' directive.
|
build:
packages/xstate-react/test/typegenTypes.test.tsx#L310
Argument of type '{ actions: { myAction: () => void; }; }' is not assignable to parameter of type 'ActorOptions<StateMachine<MachineContext, { type: "FOO"; } | { type: "BAR"; } | { type: "BAZ"; }, ProvidedActor, ParameterizedObject, ParameterizedObject, ... 4 more ..., ResolveTypegenMeta<...>>>'.
|
build:
packages/xstate-react/test/typegenTypes.test.tsx#L315
Argument of type '{ actions: { myAction: () => void; }; delays: { myDelay: () => number; }; }' is not assignable to parameter of type 'ActorOptions<StateMachine<MachineContext, { type: "FOO"; } | { type: "BAR"; } | { type: "BAZ"; }, ProvidedActor, ParameterizedObject, ParameterizedObject, ... 4 more ..., ResolveTypegenMeta<...>>>'.
|
build:
packages/xstate-react/test/typegenTypes.test.tsx#L356
Argument of type '{ actions: { fooAction: () => void; }; delays: { barDelay: () => number; }; }' is not assignable to parameter of type 'ActorOptions<StateMachine<MachineContext, { type: "FOO"; } | { type: "BAR"; } | { type: "BAZ"; }, ProvidedActor, ParameterizedObject, ParameterizedObject, ... 4 more ..., ResolveTypegenMeta<...>>>'.
|
build:
packages/xstate-react/test/typegenTypes.test.tsx#L391
Argument of type '{ actions: { fooAction: () => void; }; }' is not assignable to parameter of type 'ActorOptions<StateMachine<MachineContext, { type: "FOO"; } | { type: "BAR"; }, ProvidedActor, ParameterizedObject, ParameterizedObject, ... 4 more ..., ResolveTypegenMeta<...>>>'.
|
build
Process completed with exit code 2.
|