Skip to content

Commit 900a789

Browse files
authored
fix: require serialization for HMRConnection.send on implementation side (#1568)
1 parent 0d6b5c5 commit 900a789

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

guide/api-environment.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -914,13 +914,13 @@ export default {
914914
```ts
915915
export interface ModuleRunnerHMRConnection {
916916
/**
917-
* クライアントにメッセージを送信する前にチェックされます
917+
* サーバーにメッセージを送信する前にチェックされます
918918
*/
919919
isReady(): boolean
920920
/**
921-
* クライアントにメッセージを送信します
921+
* サーバーにメッセージを送信します
922922
*/
923-
send(message: string): void
923+
send(payload: HotPayload): void
924924
/**
925925
* この接続が更新をトリガーしたときに HMR がどのように処理されるかを設定します。
926926
* このメソッドは、接続が HMR 更新のリッスンを開始し、受信時にこのコールバックを呼び出すことを想定しています。

0 commit comments

Comments
 (0)