mirror of
https://github.com/minescope/mineping.git
synced 2025-07-10 08:14:35 +03:00
feat: add typescript declaration files
Types are automatically generated from the existsing JSDoc comments in the js source code. Use `types:build` script from `package.json` to produce d.ts files.
This commit is contained in:
@ -200,7 +200,7 @@ const parseUnconnectedPong = (pongPacket) => {
|
||||
* @param {BedrockPingOptions} [options={}] - Optional configuration.
|
||||
* @returns {Promise<BedrockPingResponse>} A promise that resolves with the server's parsed MOTD.
|
||||
*/
|
||||
export const pingBedrock = (host, options = {}) => {
|
||||
export async function pingBedrock(host, options = {}) {
|
||||
if (!host) {
|
||||
throw new Error("Host argument is required.");
|
||||
}
|
||||
@ -258,4 +258,4 @@ export const pingBedrock = (host, options = {}) => {
|
||||
socket.emit("error", err);
|
||||
}
|
||||
});
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user