summaryrefslogtreecommitdiff
path: root/frontend/src/updater.ts
diff options
context:
space:
mode:
authorAAGaming <aa@mail.catvibers.me>2022-08-09 21:52:03 -0400
committerAAGaming <aa@mail.catvibers.me>2022-08-09 21:52:03 -0400
commit67426af3ef73e788d99b6d2e0c730c270daea273 (patch)
tree30c1f4b33e63d38d8d5cc26f26af655f1b5a44ba /frontend/src/updater.ts
parent0dbdb4a143f6e4f2b08c5a38a597d5a1c49a109c (diff)
downloaddecky-loader-67426af3ef73e788d99b6d2e0c730c270daea273.tar.gz
decky-loader-67426af3ef73e788d99b6d2e0c730c270daea273.zip
Add api for showing toast notificationsv2.0.4-67426af-pre
Diffstat (limited to 'frontend/src/updater.ts')
-rw-r--r--frontend/src/updater.ts16
1 files changed, 16 insertions, 0 deletions
diff --git a/frontend/src/updater.ts b/frontend/src/updater.ts
index f499d030..dd37f0b4 100644
--- a/frontend/src/updater.ts
+++ b/frontend/src/updater.ts
@@ -11,6 +11,22 @@ export interface DeckyUpdater {
finish: () => void;
}
+export interface VerInfo {
+ current: string;
+ remote: {
+ assets: {
+ browser_download_url: string;
+ created_at: string;
+ }[];
+ name: string;
+ body: string;
+ prerelease: boolean;
+ published_at: string;
+ tag_name: string;
+ } | null;
+ updatable: boolean;
+}
+
export async function callUpdaterMethod(methodName: string, args = {}) {
const response = await fetch(`http://127.0.0.1:1337/updater/${methodName}`, {
method: 'POST',