From 353d535d1ce7ba485e137bcf3db08bbddd6b31d6 Mon Sep 17 00:00:00 2001 From: Valentin Nemcev Date: Wed, 4 Dec 2024 11:29:38 +0200 Subject: [PATCH] fix: Correct type definition for waitForAllMessagesAcknowledged (#160) --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 0faeb54..d315248 100644 --- a/index.d.ts +++ b/index.d.ts @@ -87,7 +87,7 @@ export declare function removeHook(hookFn: HookFunction): void type CreateAddHookMessageChannelReturn = { addHookMessagePort: MessagePort, - waitForAllMessagesAcknowledged: Promise + waitForAllMessagesAcknowledged: () => Promise registerOptions: { data?: Data; transferList?: any[]; } }