chore: update to tauri alpha.16, api alpha.9 (#673)

Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
This commit is contained in:
Lucas Fernandes Nogueira
2023-10-20 13:50:18 -03:00
committed by GitHub
co-authored by Amr Bashir
parent b7c5407cac
commit 5c137365c6
132 changed files with 1569 additions and 1692 deletions
+2 -6
View File
@@ -3,11 +3,7 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT
declare global {
interface Window {
__TAURI_INVOKE__: <T>(cmd: string, args?: unknown) => Promise<T>;
}
}
import { invoke } from "@tauri-apps/api/primitives";
/**
* Well known window positions.
@@ -37,7 +33,7 @@ export enum Position {
* @param to The {@link Position} to move to.
*/
export async function moveWindow(to: Position): Promise<void> {
await window.__TAURI_INVOKE__("plugin:positioner|move_window", {
await invoke("plugin:positioner|move_window", {
position: to,
});
}