Skip to content

[@xstate/store] v3 #10247

[@xstate/store] v3

[@xstate/store] v3 #10247

Triggered via pull request January 22, 2025 02:29
Status Failure
Total duration 1m 1s
Artifacts

nodejs.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
build: packages/xstate-store/src/fromStore.ts#L134
Argument of type '(event: TTypes["emitted"] extends EventObject ? TTypes["emitted"] : EventObject) => void' is not assignable to parameter of type '(value: StoreEffect<EventObject>, index: number, array: StoreEffect<EventObject>[]) => void'.
build: packages/xstate-store/test/store.test.ts#L271
Type '(ctx: NoInfer<{ count: number; }>, _: { type: "inc"; }, enq: EnqueueObject<{ type: "increased"; upBy: number; } | { type: "decreased"; downBy: number; }>) => { count: number; }' is not assignable to type 'StoreAssigner<NoInfer<{ count: number; }>, { type: string; }, { type: "increased"; upBy: number; } | { type: "decreased"; downBy: number; }>'.
build: packages/xstate-store/test/store.test.ts#L302
Type '(ctx: NoInfer<{ count: number; }>, _: { type: "inc"; }, enq: EnqueueObject<{ type: "increased"; upBy: number; } | { type: "decreased"; downBy: number; }>) => { count: number; }' is not assignable to type 'StoreAssigner<NoInfer<{ count: number; }>, { type: string; }, { type: "increased"; upBy: number; } | { type: "decreased"; downBy: number; }>'.
build: packages/xstate-store/test/store.test.ts#L334
Type '(ctx: NoInfer<{ count: number; }>, _: { type: "inc"; }, enq: EnqueueObject<{ type: "increased"; upBy: number; }>) => { count: number; }' is not assignable to type 'StoreAssigner<NoInfer<{ count: number; }>, { type: string; }, { type: "increased"; upBy: number; }>'.
build: packages/xstate-store/test/store.test.ts#L362
Type '(ctx: NoInfer<{ count: number; }>, _: { type: "inc"; }, enq: EnqueueObject<EventObject>) => { count: number; }' is not assignable to type 'StoreAssigner<NoInfer<{ count: number; }>, { type: string; }, EventObject>'.
build: packages/xstate-store/test/types.test.tsx#L13
Type '(ctx: {}, _: { type: "inc"; }, enq: EnqueueObject<{ type: "increased"; upBy: number; } | { type: "decreased"; downBy: number; }>) => {}' is not assignable to type 'StoreAssigner<{}, { type: string; }, { type: "increased"; upBy: number; } | { type: "decreased"; downBy: number; }>'.
build: packages/xstate-store/test/types.test.tsx#L30
Type '(ctx: {}, _: { type: "inc"; }, enq: EnqueueObject<{ type: "increased"; upBy: number; } | { type: "decreased"; downBy: number; }>) => {}' is not assignable to type 'StoreAssigner<{}, { type: string; }, { type: "increased"; upBy: number; } | { type: "decreased"; downBy: number; }>'.
build: packages/xstate-store/test/types.test.tsx#L50
Type '(ctx: {}, _: { type: "inc"; }, enq: EnqueueObject<{ type: "increased"; upBy: number; } | { type: "decreased"; downBy: number; }>) => {}' is not assignable to type 'StoreAssigner<{}, { type: string; }, { type: "increased"; upBy: number; } | { type: "decreased"; downBy: number; }>'.
build: packages/xstate-store/test/types.test.tsx#L66
Type '(ctx: {}, _: { type: "inc"; }, enq: EnqueueObject<EventObject>) => {}' is not assignable to type 'StoreAssigner<{}, { type: string; }, EventObject>'.
build
Process completed with exit code 2.