Skip to content

Remove the unsupported machine implementation types from useActorRef's signature #8597

Remove the unsupported machine implementation types from useActorRef's signature

Remove the unsupported machine implementation types from useActorRef's signature #8597

Triggered via pull request November 7, 2023 09:38
Status Failure
Total duration 1m 37s
Artifacts

nodejs.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

8 errors
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.