Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions types/exaroton/exaroton-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
9 changes: 9 additions & 0 deletions types/exaroton/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -812,6 +812,15 @@ declare class Server extends EventEmitter {
*/
executeCommand(command: string): Promise<Response | boolean>;

/**
* Extend the time until the server automatically stops
*
* @param {number} time
* @return {Promise<Response>}
* @throws {RequestError}
*/
extendStopTime(time: number): Promise<Response>;

/**
* Get the content of the server logs
*
Expand Down
2 changes: 1 addition & 1 deletion types/exaroton/package.json
Original file line number Diff line number Diff line change
@@ -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"
],
Expand Down
7 changes: 6 additions & 1 deletion types/node/url.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down