diff --git a/src/lib/bindings.ts b/src/lib/bindings.ts new file mode 100644 index 0000000..f7ac592 --- /dev/null +++ b/src/lib/bindings.ts @@ -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__( + cmd: string, + args?: Record + ): Promise; + } +} + +const invoke = window.__TAURI_INVOKE__; + +export function helloTauri() { + return invoke('hello_tauri'); +} + +export function hash256sum(hashInput: string) { + return invoke('hash256sum', { hashInput }); +}