Skip to content

Commit

Permalink
Add changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkpiano committed Sep 10, 2021
1 parent f9a0ac2 commit f8cf5df
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .changeset/slow-timers-nail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
'xstate': patch
---

A regression was fixed where actions were being typed as `never` if events were specified in `createModel(...)` but not actions:

```ts
const model = createModel(
{},
{
events: {}
}
);

model.createMachine({
// These actions will cause TS to not compile
entry: 'someAction',
exit: { type: 'someObjectAction' }
});
```

0 comments on commit f8cf5df

Please sign in to comment.