mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
19 lines
250 B
TypeScript
19 lines
250 B
TypeScript
import Gamedig = require("gamedig");
|
|
|
|
Gamedig.query({
|
|
type: "tf2",
|
|
host: "127.0.0.1"
|
|
}, (error, state) => {
|
|
if (error) throw error();
|
|
|
|
const {
|
|
name,
|
|
map,
|
|
password,
|
|
maxplayers,
|
|
players,
|
|
bots,
|
|
notes
|
|
} = state;
|
|
});
|