chore: init

This commit is contained in:
Cfp
2025-08-07 10:01:06 +02:00
commit c3f3e8fd06
55 changed files with 1312 additions and 0 deletions

13
guest-js/index.ts Normal file
View File

@ -0,0 +1,13 @@
import { invoke } from '@tauri-apps/api/core'
type DuckResponse = {
success: boolean
}
export async function duck(): Promise<string | null> {
return await invoke<{value?: string}>('plugin:duck|duck').then((r: DuckResponse) => r.success);
}
export async function unduck(value: string): Promise<boolean | null> {
return await invoke<{value?: string}>('plugin:duck|unduck').then((r: DuckResponse) => r.success);
}