Skip to content

Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.

264 B
Raw Blame
import { invoke } from "@tauri-apps/api/core";

export async function pluginInvoke<T>(
  pluginId: string,
  command: string,
  args: Record<string, unknown> = {},
): Promise<T> {
  return invoke<T>("plugin_command", {
    pluginId,
    command,
    args,
  });
}