oosp
This commit is contained in:
parent
c3243503a7
commit
34e396271d
3 changed files with 23 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,2 @@
|
||||||
tmp/
|
tmp/
|
||||||
out/
|
|
||||||
*.exe
|
*.exe
|
11
runtime/out/preload.d.ts
vendored
Normal file
11
runtime/out/preload.d.ts
vendored
Normal 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
12
runtime/out/preload.js
Normal 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;
|
Loading…
Add table
Add a link
Reference in a new issue