We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc8db3a commit 60e61aaCopy full SHA for 60e61aa
src/index.d.ts
@@ -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
+
7
type FSMethodNames = { [K in keyof typeof FS]: (typeof FS)[K] extends (...args: any[]) => any ? K : never }[keyof typeof FS];
8
type FSMethodArgs = { [K in FSMethodNames]: Parameters<(typeof FS)[K]> };
9
type FSMethodReturn = { [K in FSMethodNames]: ReturnType<(typeof FS)[K]> };
0 commit comments