Wrong type definition for beforePing (#957)

* `favicon` now include in types

* fix `beforePing` type
This commit is contained in:
Richard Dorian 2022-02-01 23:47:44 +01:00 committed by GitHub
parent ffeb7515e3
commit 4691abd036
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

2
src/index.d.ts vendored
View file

@ -136,7 +136,7 @@ declare module 'minecraft-protocol' {
kickTimeout?: number
checkTimeoutInterval?: number
'online-mode'?: boolean
beforePing?: (response: any, client: Client, callback?: (result: any) => any) => any
beforePing?: (response: any, client: Client, callback?: (error: any, result: any) => any) => any
beforeLogin?: (client: Client) => void
motd?: string
maxPlayers?: number