tauri/tooling/cli.rs/templates/plugin/with-api/webview-src/index.ts

6 lines
135 B
TypeScript

import { invoke } from '@tauri-apps/api/tauri'
export async function execute() {
await invoke('plugin:{{ plugin_name }}|execute')
}