init tiramisu
This commit is contained in:
commit
967b77c51c
10 changed files with 253 additions and 0 deletions
11
runtime/index.d.ts
vendored
Normal file
11
runtime/index.d.ts
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
declare global {
|
||||
interface Window {
|
||||
invoke: (name: string, ...args: any[]) => Promise<any>;
|
||||
tiramisu: {
|
||||
invoke: (name: string, ...args: any[]) => Promise<any>;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export { };
|
||||
|
5
runtime/preload.ts
Normal file
5
runtime/preload.ts
Normal file
|
@ -0,0 +1,5 @@
|
|||
const tiramisu = {
|
||||
invoke: window.invoke
|
||||
}
|
||||
|
||||
window.tiramisu = tiramisu
|
12
runtime/tsconfig.json
Normal file
12
runtime/tsconfig.json
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"target": "esnext",
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
"strict": false,
|
||||
"declaration": true,
|
||||
"outDir": "./out",
|
||||
"esModuleInterop": true,
|
||||
"skipLibCheck": true
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue