Skip to content

[EARLY DRAFT] Create an xstate v5 gpt #9734

[EARLY DRAFT] Create an xstate v5 gpt

[EARLY DRAFT] Create an xstate v5 gpt #9734

Triggered via pull request May 30, 2024 11:20
Status Failure
Total duration 51s
Artifacts

nodejs.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 1 warning
build: 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'.
build: 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>'.
build: 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>'.
build: packages/core/test/kitchen-sink.guard.test.ts#L273
Expected 2 arguments, but got 1.
build: 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"'.
build
Process completed with exit code 2.
build
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/.