[EARLY DRAFT] Create an xstate v5 gpt #4917
Draft
Annotations
6 errors and 1 warning
Run /./.github/actions/ci-checks:
packages/core/test/kitchen-sink.guard.test.ts#L115
Type '({ context: { elapsed } }: GuardArgs<MachineContext, { type: "TIMER"; elapsed: number; }>) => { type: string; params: { elapsed: number; }; }' is not assignable to type 'Guard<MachineContext, { type: "TIMER"; elapsed: number; }, undefined, Values<{ minTimeElapsed: { type: "minTimeElapsed"; params: { elapsed: number; }; }; isEmergency: { type: "isEmergency"; params: { ...; }; }; custom: { ...; }; isCountHigh: { ...; }; isElapsedHigh: { ...; }; }>> | undefined'.
|
Run /./.github/actions/ci-checks:
packages/core/test/kitchen-sink.guard.test.ts#L244
Object literal may only specify known properties, and 'A' does not exist in type 'TransitionsConfig<MachineContext, { type: "TIMER"; elapsed: number; } | { type: "EMERGENCY"; isEmergency?: boolean | undefined; } | { type: "EVENT"; value: number; } | { type: "TIMER_COND_OBJ"; } | { ...; } | { ...; } | { ...; }, ... 5 more ..., MetaObject>'.
|
Run /./.github/actions/ci-checks:
packages/core/test/kitchen-sink.guard.test.ts#L263
Type 'GuardPredicate<MachineContext, { type: "TIMER"; elapsed: number; } | { type: "EMERGENCY"; isEmergency?: boolean | undefined; } | { type: "EVENT"; value: number; } | { type: "TIMER_COND_OBJ"; } | { ...; } | { ...; } | { ...; }, undefined, any>' is not assignable to type 'GuardPredicate<MachineContext, { type: "TIMER"; elapsed: number; } | { type: "EMERGENCY"; isEmergency?: boolean | undefined; } | { type: "EVENT"; value: number; } | { type: "TIMER_COND_OBJ"; } | { ...; } | { ...; } | { ...; }, undefined, never>'.
|
Run /./.github/actions/ci-checks:
packages/core/test/kitchen-sink.guard.test.ts#L273
Expected 2 arguments, but got 1.
|
Run /./.github/actions/ci-checks:
packages/core/test/kitchen-sink.guard.test.ts#L274
Type '"A"' is not assignable to type '"EVENT" | "TEST" | "TIMER" | "EMERGENCY" | "TIMER_COND_OBJ" | "BAD_COND" | "GO_TO_ACTIVE"'.
|
Run /./.github/actions/ci-checks
Process completed with exit code 2.
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Loading