Skip to content

Commit

Permalink
[@xstate/store] Export types (#4918)
Browse files Browse the repository at this point in the history
* Export types

* Update .changeset/eighty-bugs-shop.md

Co-authored-by: Mateusz Burzyński <[email protected]>

---------

Co-authored-by: Mateusz Burzyński <[email protected]>
  • Loading branch information
davidkpiano and Andarist committed May 30, 2024
1 parent 7c4fd74 commit 3323c85
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .changeset/eighty-bugs-shop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
'@xstate/store': patch
---

Types are now exported:

```ts
import type { SnapshotFromStore } from '@xstate/store';

// ...
```
1 change: 1 addition & 0 deletions packages/xstate-store/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export { fromStore } from './fromStore';
export { createStore, createStoreWithProducer } from './store';
export * from './types';

0 comments on commit 3323c85

Please sign in to comment.