From e1810eb3ae4f5f14ac19b4372eee0849f417c9e2 Mon Sep 17 00:00:00 2001 From: Mike Holloway Date: Sat, 8 Jul 2023 09:23:55 +0100 Subject: [PATCH 1/2] add overwolf.utils.ClientUpdateResult --- overwolf.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/overwolf.d.ts b/overwolf.d.ts index 778e9f2..e639cdd 100644 --- a/overwolf.d.ts +++ b/overwolf.d.ts @@ -5808,6 +5808,14 @@ declare namespace overwolf.utils { filePrefix: string; } + interface ClientUpdateResult extends Result { + channel: string; + currentVersion: string; + hasUpdate: boolean; + newVersion: string; + updatesDisabled: boolean; + } + /** * Copies the given string to the clipboard. * @param data The string to be copied to the clipboard. From 5bac7308e4ea75f0779097e1a68accf0cb5b3881 Mon Sep 17 00:00:00 2001 From: Mike Holloway Date: Sat, 8 Jul 2023 09:35:45 +0100 Subject: [PATCH 2/2] add overwolf.utils.checkForClientUpdates definition --- overwolf.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/overwolf.d.ts b/overwolf.d.ts index e639cdd..2ac7f11 100644 --- a/overwolf.d.ts +++ b/overwolf.d.ts @@ -6000,6 +6000,14 @@ declare namespace overwolf.utils { function getClientInfo( callback: CallbackFunction ): void; + + /** + * Checks whether an Overwolf client update is available. + * @param callback A callback with the result. + */ + function checkForClientUpdates( + callback: CallbackFunction + ): void; } declare namespace overwolf.settings {