diff --git a/types/exaroton/exaroton-tests.ts b/types/exaroton/exaroton-tests.ts index 5e6096ca7336bc..b861a066102f01 100644 --- a/types/exaroton/exaroton-tests.ts +++ b/types/exaroton/exaroton-tests.ts @@ -23,6 +23,8 @@ const startServer = async (name: string) => { options.get("max-players")?.setValue(26); options.get("pvp")?.setValue(false); + await myServer.extendStopTime(120); + await config.save(); let pools = await client.getPools(); diff --git a/types/exaroton/index.d.ts b/types/exaroton/index.d.ts index 8925ba9f936662..81a986839c5c00 100644 --- a/types/exaroton/index.d.ts +++ b/types/exaroton/index.d.ts @@ -812,6 +812,15 @@ declare class Server extends EventEmitter { */ executeCommand(command: string): Promise; + /** + * Extend the time until the server automatically stops + * + * @param {number} time + * @return {Promise} + * @throws {RequestError} + */ + extendStopTime(time: number): Promise; + /** * Get the content of the server logs * diff --git a/types/exaroton/package.json b/types/exaroton/package.json index aa97cb7397cda7..faaacd29810b88 100644 --- a/types/exaroton/package.json +++ b/types/exaroton/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@types/exaroton", - "version": "1.11.9999", + "version": "1.12.9999", "projects": [ "https://github.com/exaroton/node-exaroton-api" ], diff --git a/types/node/url.d.ts b/types/node/url.d.ts index 157ae84a3b89b1..ba12c4685f8c08 100644 --- a/types/node/url.d.ts +++ b/types/node/url.d.ts @@ -1020,7 +1020,12 @@ declare module "url" { interface URLPatternInit extends _URLPatternInit {} interface URLPatternResult extends _URLPatternResult {} interface URLPattern extends _URLPattern {} - var URLPattern: typeof _URLPattern; + var URLPattern: typeof globalThis extends { + onmessage: any; + scheduler: any; // Must be a var introduced at the same time as URLPattern. + URLPattern: infer T; + } ? T + : typeof _URLPattern; } } declare module "node:url" {