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

9 lines
187 B
TypeScript

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