[v5] Strongly-typed state value #7873
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
Annotations
10 errors
build:
packages/core/src/scxml.ts#L558
Argument of type '{ context: Record<string, unknown> | undefined; initial?: SingleOrArray<string> | InitialTransitionConfig<any, any> | undefined; ... 17 more ...; target?: string | undefined; }' is not assignable to parameter of type 'StateNodeConfig<MachineContext, AnyEventObject, ParameterizedObject, ProvidedActor> & { ...; } & { ...; } & { ...; }'.
|
build:
packages/core/test/activities.test.ts#L340
Type '{ a: { invoke: { src: string; }; on: { NEXT: string; }; }; b: { invoke: { src: string; }; }; }' is not assignable to type 'StatesConfig<MachineContext, AnyEventObject, ParameterizedObject, { src: "fooActor"; logic: CallbackActorLogic<EventObject, unknown>; }> & { ...; }'.
|
build:
packages/core/test/activities.test.ts#L393
Type '{ a: { invoke: { src: string; }; on: { NEXT: { target: string; reenter: true; }; }; }; }' is not assignable to type 'StatesConfig<MachineContext, AnyEventObject, ParameterizedObject, { src: "fooActor"; logic: CallbackActorLogic<EventObject, unknown>; }> & { ...; }'.
|
build:
packages/core/test/interpreter.test.ts#L1434
Type '{ idle: { on: { NEXT: string; }; }; done: { type: string; }; }' is not assignable to type 'StatesConfig<MachineContext, AnyEventObject, ParameterizedObject, ProvidedActor> & { ...; }'.
|
build:
packages/core/test/interpreter.test.ts#L1485
Type '{ initial: { invoke: { src: string; }; }; }' is not assignable to type 'StatesConfig<MachineContext, AnyEventObject, ParameterizedObject, { src: "testService"; logic: CallbackActorLogic<EventObject, unknown>; }> & { ...; }'.
|
build:
packages/core/test/interpreter.test.ts#L1555
Type '{ active: { invoke: { id: string; src: string; onDone: ({ target: string; guard: ({ event }: { context: MachineContext; event: DoneInvokeEvent<number>; } & GuardArgs<MachineContext, DoneInvokeEvent<...>>) => boolean; } | { ...; })[]; }; }; success: { ...; }; failure: { ...; }; }' is not assignable to type 'StatesConfig<MachineContext, AnyEventObject, ParameterizedObject, { src: "num"; logic: PromiseActorLogic<number>; }> & { ...; }'.
|
build:
packages/core/test/interpreter.test.ts#L1597
Argument of type 'string' is not assignable to parameter of type 'Record<string, never>'.
|
build:
packages/core/test/interpreter.test.ts#L1604
Argument of type 'string' is not assignable to parameter of type 'Record<string, never>'.
|
build:
packages/core/test/invoke.test.ts#L133
Type '{ start: { invoke: { src: string; id: string; }; always: { target: string; guard: ({ context }: { context: { count: number; }; event: AnyEventObject; } & GuardArgs<{ count: number; }, AnyEventObject>) => boolean; }; on: { ...; }; }; stop: { ...; }; }' is not assignable to type 'StatesConfig<{ count: number; }, AnyEventObject, ParameterizedObject, { src: "child"; id: "someService"; events: never; logic: StateMachine<MachineContext, ... 5 more ..., { ...; }>; }> & { ...; }'.
|
build:
packages/core/test/invoke.test.ts#L393
Type '{ start: { invoke: { src: string; id: string; }; on: { STOP: string; }; }; stop: { type: "final"; }; }' is not assignable to type 'StatesConfig<{ count: number; }, AnyEventObject, ParameterizedObject, { src: "child"; id: "someService"; logic: StateMachine<MachineContext, AnyEventObject, ... 4 more ..., { ...; }>; }> & { ...; }'.
|