[@xstate/store] Event emitter #10056
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
Annotations
10 errors
build:
packages/xstate-store/src/fromStore.ts#L25
Type 'typeof createStore<TContext, TEventPayloadMap>' does not satisfy the constraint '(...args: any) => any'.
|
build:
packages/xstate-store/src/fromStore.ts#L25
Type '<TContext extends StoreContext, TEventPayloadMap extends EventPayloadMap, TEmitted extends { type: string; }>(initialContext: TContext, transitions: { [K in keyof TEventPayloadMap & string]: StoreAssigner<NoInfer<TContext>, { ...; } & TEventPayloadMap[K], TEmitted> | StorePropertyAssigner<...>; }) => Store<...>' has no signatures for which the type argument list is applicable.
|
build:
packages/xstate-store/src/fromStore.ts#L27
Expected 3 type arguments, but got 2.
|
build:
packages/xstate-store/src/react.ts#L8
Generic type 'Store<TContext, Ev, TEmitted>' requires 3 type argument(s).
|
build:
packages/xstate-store/src/react.ts#L43
Generic type 'Store<TContext, Ev, TEmitted>' requires 3 type argument(s).
|
build:
packages/xstate-store/src/solid.ts#L9
Generic type 'Store<TContext, Ev, TEmitted>' requires 3 type argument(s).
|
build:
packages/xstate-store/src/solid.ts#L56
Generic type 'Store<TContext, Ev, TEmitted>' requires 3 type argument(s).
|
build:
packages/xstate-store/test/fromStore.test.ts#L6
Argument of type '{ inc: { count: (ctx: any, ev: { by: number; }) => any; }; }' is not assignable to parameter of type 'never'.
|
build:
packages/xstate-store/test/fromStore.test.ts#L8
Parameter 'ctx' implicitly has an 'any' type.
|
build:
packages/xstate-store/test/fromStore.test.ts#L20
Object literal may only specify known properties, and 'by' does not exist in type '{ type: string; }'.
|