summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package.json2
-rw-r--r--src/shapex.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/package.json b/package.json
index 61b9d70..a762f00 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "shapex",
- "version": "2.1.3",
+ "version": "2.1.4",
"description": "A scalable event-driven application framework.",
"author": "Asko Nõmm <asko@nmm.ee> (https://nmm.ee)",
"main": "dist/shapex.cjs",
diff --git a/src/shapex.ts b/src/shapex.ts
index 4fde18b..8ef6ebd 100644
--- a/src/shapex.ts
+++ b/src/shapex.ts
@@ -35,7 +35,7 @@ export type EventCallback<
T,
W extends unknown = undefined,
D extends unknown = W
-> = (state: T, data?: W) => SubscriptionResponse<T, W, D>;
+> = (state: T, data?: W) => SubscriptionResponse<T, W, D> | void;
type Subscription<T, W extends unknown = undefined, D extends unknown = W> = {
listener: string;