This commit is contained in:
grngxd 2025-06-27 15:14:59 +01:00
parent c3243503a7
commit 34e396271d
3 changed files with 23 additions and 1 deletions

1
.gitignore vendored
View file

@ -1,3 +1,2 @@
tmp/
out/
*.exe

11
runtime/out/preload.d.ts vendored Normal file
View file

@ -0,0 +1,11 @@
declare const tiramisu: {
invoke: (name: string, ...args: any[]) => Promise<any>;
fs: {
readFile: (path: string) => Promise<string>;
readDir: (path: string) => Promise<string[]>;
exists: (path: string) => Promise<boolean>;
};
notifications: {
notify: (message: string, ico?: string) => Promise<void>;
};
};

12
runtime/out/preload.js Normal file
View file

@ -0,0 +1,12 @@
const tiramisu = {
invoke: window.__TIRAMISU_INTERNAL_invoke,
fs: {
readFile: window.__TIRAMISU_FILESYSTEM_readFile,
readDir: window.__TIRAMISU_FILESYSTEM_readDir,
exists: window.__TIRAMISU_INTERNAL_exists,
},
notifications: {
notify: window.__TIRAMISU_NOTIFICATIONS_notify,
},
};
window.tiramisu = tiramisu;