Skip to content

Commit 95eb181

Browse files
committed
Add JSDoc
1 parent 498b02e commit 95eb181

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/xstate-store/src/types.ts

+7
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,13 @@ export interface Store<TContext, Ev extends EventObject>
6666
send: (event: Ev) => void;
6767
getSnapshot: () => StoreSnapshot<TContext>;
6868
getInitialSnapshot: () => StoreSnapshot<TContext>;
69+
/**
70+
* Subscribes to [inspection events](https://stately.ai/docs/inspection) from
71+
* the store.
72+
*
73+
* Inspectors that call `store.inspect(…)` will immediately receive an
74+
* "@xstate.actor" inspection event.
75+
*/
6976
inspect: (
7077
observer:
7178
| Observer<InspectionEvent>

0 commit comments

Comments
 (0)