Skip to content

Commit

Permalink
refactor: rename runner.destroy() to runner.close() (#1601)
Browse files Browse the repository at this point in the history
  • Loading branch information
jay-es authored Oct 9, 2024
1 parent 8acdcf3 commit 07b7c74
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions guide/api-environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -645,11 +645,11 @@ export class ModuleRunner {
* すべてのキャッシュをクリアし、すべての HMR リスナーを削除し、ソースマップのサポートをリセットします。
* このメソッドは HMR 接続を停止しません。
*/
public async destroy(): Promise<void>
public async close(): Promise<void>
/**
* ランナーが `destroy()` メソッドを呼び出して破棄された場合は `true` を返します。
* `close()` メソッドを呼び出してランナーを終了した場合は `true` を返します。
*/
public isDestroyed(): boolean
public isClosed(): boolean
}
```
Expand Down

0 comments on commit 07b7c74

Please sign in to comment.