Skip to content

Commit

Permalink
Fixed types #2
Browse files Browse the repository at this point in the history
  • Loading branch information
james-pre committed Jul 25, 2024
1 parent c4a91a6 commit 4c92476
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/backends/port/fs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ async function handleRequest(port: RPC.Port, fs: FileSystem, request: FileOrFSRe
if (!descriptors.has(fd)) {
throw new ErrnoError(Errno.EBADF);
}
// @ts-expect-error 2556
value = await descriptors.get(fd)![method](...args);
if (method == 'close') {
descriptors.delete(fd);
Expand Down

0 comments on commit 4c92476

Please sign in to comment.