1.5.4 • Published 6 months ago
@types/mcping-js v1.5.4
Installation
npm install --save @types/mcping-js
Summary
This package contains type definitions for mcping-js (https://github.com/Cryptkeeper/mcping-js).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mcping-js.
index.d.ts
// Type definitions for mcping-js 1.5
// Project: https://github.com/Cryptkeeper/mcping-js
// Definitions by: Inrix <https://github.com/Inrixia>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.8
export interface PingResponse {
version: {
name: string;
protocol: number;
};
players: {
max: number;
online: number;
sample?: Array<{
name: string;
id: string;
}> | undefined;
};
description: {
text: string;
};
favicon: string;
}
export class MinecraftServer {
constructor(host: string, port?: number);
ping(
timeout: number,
protocolVersion: number | undefined,
callback: (err?: Error, res?: PingResponse) => void,
): void;
}
Additional Details
- Last updated: Thu, 08 Jul 2021 16:24:06 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Inrix.