generated bindings

This commit is contained in:
Fractal-Tess
2023-05-18 06:51:26 +03:00
parent 2954bce715
commit ced6545c77

20
src/lib/bindings.ts Normal file
View File

@@ -0,0 +1,20 @@
// This file was generated by [tauri-specta](https://github.com/oscartbeaumont/tauri-specta). Do not edit this file manually.
declare global {
interface Window {
__TAURI_INVOKE__<T>(
cmd: string,
args?: Record<string, unknown>
): Promise<T>;
}
}
const invoke = window.__TAURI_INVOKE__;
export function helloTauri() {
return invoke<string>('hello_tauri');
}
export function hash256sum(hashInput: string) {
return invoke<string>('hash256sum', { hashInput });
}