mirror of
https://github.com/minescope/mineping.git
synced 2025-07-14 00:44:37 +03:00
feat(pingJava): add protocolVersion
feat(types): `PingOptions` for Java fix(types): type names fix(types): type names
This commit is contained in:
13
types/lib/java.d.ts
vendored
13
types/lib/java.d.ts
vendored
@ -1,4 +1,13 @@
|
||||
import { PingOptions } from "./bedrock";
|
||||
/**
|
||||
* @param port The server port.
|
||||
* @param timeout The read/write socket timeout.
|
||||
* @param protocolVersion The protocol version.
|
||||
*/
|
||||
export type JavaPingOptions = {
|
||||
port: number,
|
||||
timeout: number,
|
||||
protocolVersion: number;
|
||||
};
|
||||
|
||||
/**
|
||||
* JSON format chat component used for description field.
|
||||
@ -67,5 +76,5 @@ export type JavaPingResponse = {
|
||||
* ```
|
||||
* @see [source](https://github.com/minescope/mineping/blob/915edbec9c9ad811459458600af3531ec0836911/lib/java.js#L117)
|
||||
*/
|
||||
export function pingJava(host: string, options?: PingOptions): Promise<JavaPingResponse>;
|
||||
export function pingJava(host: string, options?: JavaPingOptions): Promise<JavaPingResponse>;
|
||||
|
||||
|
Reference in New Issue
Block a user