Skip to content

Commit 54631b5

Browse files
authored
Merge pull request #134 from Sxxov/master
Add missing FS object
2 parents bc8db3a + d350991 commit 54631b5

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) => void,
3+
readFile: (fileName: string) => Uint8Array,
4+
unlink: (fileName: string) => 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)