Skip to content

Commit 60e61aa

Browse files
committed
Add missing FS object
1 parent bc8db3a commit 60e61aa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/index.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
export const FS: {
2+
writeFile: (fileName: string, binaryData: Uint8Array) => Promise<void>,
3+
readFile: (fileName: string) => Promise<Uint8Array>,
4+
unlink: (fileName: string) => Promise<void>,
5+
}
6+
17
type FSMethodNames = { [K in keyof typeof FS]: (typeof FS)[K] extends (...args: any[]) => any ? K : never }[keyof typeof FS];
28
type FSMethodArgs = { [K in FSMethodNames]: Parameters<(typeof FS)[K]> };
39
type FSMethodReturn = { [K in FSMethodNames]: ReturnType<(typeof FS)[K]> };

0 commit comments

Comments
 (0)