mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 05:41:55 +00:00
Migrate most of frontend callServerMethod usage over to websocket
This commit is contained in:
@@ -13,3 +13,27 @@ export enum InstallType {
|
||||
REINSTALL,
|
||||
UPDATE,
|
||||
}
|
||||
|
||||
type installPluginArgs = [
|
||||
artifact: string,
|
||||
name?: string,
|
||||
version?: string,
|
||||
hash?: string | boolean,
|
||||
installType?: InstallType,
|
||||
];
|
||||
|
||||
export let installPlugin = window.DeckyBackend.callable<installPluginArgs>('utilities/install_plugin');
|
||||
|
||||
type installPluginsArgs = [
|
||||
requests: {
|
||||
artifact: string;
|
||||
name?: string;
|
||||
version?: string;
|
||||
hash?: string | boolean;
|
||||
installType?: InstallType;
|
||||
}[],
|
||||
];
|
||||
|
||||
export let installPlugins = window.DeckyBackend.callable<installPluginsArgs>('utilities/install_plugins');
|
||||
|
||||
export let uninstallPlugin = window.DeckyBackend.callable<[name: string]>('utilities/uninstall_plugin');
|
||||
|
||||
Reference in New Issue
Block a user