Skip to content

Commit

Permalink
Switch to EventObject
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Adams committed Dec 12, 2024
1 parent 94cdc3c commit 4bf2363
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/actors/callback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export function fromCallback<
TEvent extends EventObject,
TInput = NonReducibleUnknown,
TEmitted extends EventObject = EventObject,
TSentEvent extends EventObject = AnyEventObject
TSentEvent extends EventObject = EventObject
>(
callback: CallbackLogicFunction<TEvent, TSentEvent, TInput, TEmitted>
): CallbackActorLogic<TEvent, TInput, TEmitted, TSentEvent> {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2211,7 +2211,7 @@ export interface ActorLogic<
in TInput = NonReducibleUnknown,
TSystem extends AnyActorSystem = AnyActorSystem,
in out TEmitted extends EventObject = EventObject, // it's invariant because it's also aprt of `ActorScope["self"]["on"]`
in _TSentEvent extends EventObject = AnyEventObject // currently unused at this level, but used by `CallbackActorLogic`
_TSentEvent extends EventObject = AnyEventObject // currently unused at this level, but used by `CallbackActorLogic`
> {
/** The initial setup/configuration used to create the actor logic. */
config?: unknown;
Expand Down

0 comments on commit 4bf2363

Please sign in to comment.