fix(updater): fix readme and types (#903)

* Types fix

* generate files
This commit is contained in:
Anton Piliugin
2024-01-17 01:45:22 +02:00
committed by GitHub
parent bf5a21d5b2
commit 8a3db790b8
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ Afterwards all the plugin's APIs are available through the JavaScript guest bind
import { check } from "@tauri-apps/plugin-updater";
import { relaunch } from "@tauri-apps/plugin-process";
const update = await check();
if (update.response.available) {
if (update?.available) {
await update.downloadAndInstall();
await relaunch();
}