mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
🤖 Merge PR #47254 fix(gamedig): add new givenPortOnly query option by @P4sca1
* fix(gamedig): add new givenPortOnly query option * fix(gamedig): update tests and remove patch version number
This commit is contained in:
parent
a158272027
commit
42aaa4a278
@ -2,7 +2,13 @@ import Gamedig = require("gamedig");
|
||||
|
||||
Gamedig.query({
|
||||
type: "tf2",
|
||||
host: "127.0.0.1"
|
||||
host: "127.0.0.1",
|
||||
port: 27015,
|
||||
maxAttempts: 1,
|
||||
socketTimeout: 2000,
|
||||
attemptTimeout: 10000,
|
||||
givenPortOnly: true,
|
||||
debug: false
|
||||
}, (error, state) => {
|
||||
if (error) throw error();
|
||||
|
||||
|
||||
2
types/gamedig/index.d.ts
vendored
2
types/gamedig/index.d.ts
vendored
@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/sonicsnes/node-gamedig
|
||||
// Definitions by: Ivan Sieder <https://github.com/ivansieder>
|
||||
// Marco Vockner <https://github.com/marcopixel>
|
||||
// Pascal Sthamer <https://github.com/p4sca1>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export type Type =
|
||||
@ -292,6 +293,7 @@ export interface QueryOptions {
|
||||
maxAttempts?: number;
|
||||
socketTimeout?: number;
|
||||
attemptTimeout?: number;
|
||||
givenPortOnly?: boolean;
|
||||
debug?: boolean;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user