Mark listen and close as async (#440)

This commit is contained in:
MrSterdy 2023-08-05 17:33:25 +04:00 committed by GitHub
commit 50cd489f6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

4
index.d.ts vendored
View file

@ -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
}