1.5.4 • Published 6 months ago

@types/mcping-js v1.5.4

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

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.

1.5.4

6 months ago

1.5.3

7 months ago

1.5.2

8 months ago

1.5.1

3 years ago

1.5.0

3 years ago