From aca05ef5b9f3f911d62a2aa37e3916695d2b78aa Mon Sep 17 00:00:00 2001 From: Asko Nõmm Date: Tue, 29 Apr 2025 00:07:12 +0300 Subject: Allow returning void in a event callback --- src/shapex.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; +> = (state: T, data?: W) => SubscriptionResponse | void; type Subscription = { listener: string; -- cgit v1.2.3