From 67426af3ef73e788d99b6d2e0c730c270daea273 Mon Sep 17 00:00:00 2001 From: AAGaming Date: Tue, 9 Aug 2022 21:52:03 -0400 Subject: Add api for showing toast notifications --- frontend/src/updater.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'frontend/src/updater.ts') 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', -- cgit v1.2.3