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.
2 parents bc8db3a + d350991 commit 54631b5Copy full SHA for 54631b5
src/index.d.ts
@@ -1,3 +1,9 @@
1
+export const FS: {
2
+ writeFile: (fileName: string, binaryData: Uint8Array) => void,
3
+ readFile: (fileName: string) => Uint8Array,
4
+ unlink: (fileName: string) => 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