@nextclaw/ncp 0.4.5 → 0.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +5 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -897,6 +897,11 @@ interface NcpConversationStateManager {
|
|
|
897
897
|
* Notifies subscribers after the update.
|
|
898
898
|
*/
|
|
899
899
|
dispatch(event: NcpEndpointEvent): Promise<void>;
|
|
900
|
+
/**
|
|
901
|
+
* Applies multiple NCP events in order and notifies subscribers once after
|
|
902
|
+
* the batch finishes mutating state.
|
|
903
|
+
*/
|
|
904
|
+
dispatchBatch(events: readonly NcpEndpointEvent[]): Promise<void>;
|
|
900
905
|
/**
|
|
901
906
|
* Subscribes to state changes. Listener is called after each dispatch that mutates state.
|
|
902
907
|
* Returns an unsubscribe function.
|