This commit is contained in:
grngxd 2025-06-16 23:46:07 +01:00
parent 3bee70b536
commit 6c84e18ce8
5 changed files with 103 additions and 27 deletions

9
runtime/index.d.ts vendored
View file

@ -1,8 +1,15 @@
declare global {
interface Window {
invoke: (name: string, ...args: any[]) => Promise<any>;
__TIRAMISU_INTERNAL_invoke: (name: string, ...args: any[]) => Promise<any>;
__TIRAMISU_INTERNAL_readFile: (path: string) => Promise<string>;
__TIRAMISU_INTERNAL_readDir: (path: string) => Promise<string[]>;
tiramisu: {
invoke: (name: string, ...args: any[]) => Promise<any>;
fs: {
readFile(path: string): Promise<string>;
readDir(path: string): Promise<string[]>;
}
};
}
}