Skip to content

Commit

Permalink
fix: make result interfaces for ModuleRunnerTransport#invoke more exp…
Browse files Browse the repository at this point in the history
…licit

resolved #1067
  • Loading branch information
Gumball12 committed Dec 7, 2024
1 parent eef6439 commit 126948b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions guide/api-environment-runtimes.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,7 @@ interface ModuleRunnerTransport {
connect?(handlers: ModuleRunnerTransportHandlers): Promise<void> | void
disconnect?(): Promise<void> | void
send?(data: HotPayload): Promise<void> | void
invoke?(
data: HotPayload,
): Promise<{ /** result */ r: any } | { /** error */ e: any }>
invoke?(data: HotPayload): Promise<{ result: any } | { error: any }>
timeout?: number
}
```
Expand Down

0 comments on commit 126948b

Please sign in to comment.