From 157297f6f5d0008252d1a364fb8a891959418e61 Mon Sep 17 00:00:00 2001 From: Jun Shindo <46585162+jay-es@users.noreply.github.com> Date: Tue, 3 Dec 2024 19:33:34 +0900 Subject: [PATCH] fix: make result interfaces for `ModuleRunnerTransport#invoke` more explicit --- guide/api-environment-runtimes.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/guide/api-environment-runtimes.md b/guide/api-environment-runtimes.md index 278f8e95..c5c7bdf6 100644 --- a/guide/api-environment-runtimes.md +++ b/guide/api-environment-runtimes.md @@ -265,9 +265,7 @@ interface ModuleRunnerTransport { connect?(handlers: ModuleRunnerTransportHandlers): Promise | void disconnect?(): Promise | void send?(data: HotPayload): Promise | void - invoke?( - data: HotPayload, - ): Promise<{ /** result */ r: any } | { /** error */ e: any }> + invoke?(data: HotPayload): Promise<{ result: any } | { error: any }> timeout?: number } ```