Skip to content

Commit c559ee0

Browse files
committed
Make FS methods synchronous to mirror emscripten's
1 parent 60e61aa commit c559ee0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export const FS: {
2-
writeFile: (fileName: string, binaryData: Uint8Array) => Promise<void>,
3-
readFile: (fileName: string) => Promise<Uint8Array>,
4-
unlink: (fileName: string) => Promise<void>,
2+
writeFile: (fileName: string, binaryData: Uint8Array) => void,
3+
readFile: (fileName: string) => void,
4+
unlink: (fileName: string) => void,
55
}
66

77
type FSMethodNames = { [K in keyof typeof FS]: (typeof FS)[K] extends (...args: any[]) => any ? K : never }[keyof typeof FS];

0 commit comments

Comments
 (0)