Mark listen and close as async (#440)
This commit is contained in:
parent
1414420574
commit
50cd489f6e
1 changed files with 2 additions and 2 deletions
4
index.d.ts
vendored
4
index.d.ts
vendored
|
|
@ -162,8 +162,8 @@ declare module 'bedrock-protocol' {
|
|||
|
||||
constructor(options: Options)
|
||||
|
||||
listen(host?: string, port?: number): void
|
||||
close(disconnectReason?: string): void
|
||||
listen(host?: string, port?: number): Promise<void>
|
||||
close(disconnectReason?: string): Promise<void>
|
||||
|
||||
on(event: 'connect', cb: (client: Player) => void): any
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue