basic fs
This commit is contained in:
parent
3bee70b536
commit
6c84e18ce8
5 changed files with 103 additions and 27 deletions
9
runtime/index.d.ts
vendored
9
runtime/index.d.ts
vendored
|
@ -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[]>;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue