Skip to content

Commit

Permalink
fix(@xstate/graph): fix event types
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkpiano committed Jun 18, 2019
1 parent 4eb85b6 commit 178cab7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/xstate-graph/src/graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ export function getEventEdges<
: node;

return {
source: node,
target: targetNode,
source: node as StateNode<TContext, any, any>, // TODO: fix
target: targetNode as StateNode<TContext, any, any>, // TODO: fix
event,
actions: transition.actions
? transition.actions.map(getActionType)
Expand Down

0 comments on commit 178cab7

Please sign in to comment.