summaryrefslogtreecommitdiff
path: root/std/node/_fs/_fs_readFile.ts
diff options
context:
space:
mode:
authorMarcos Casagrande <marcoscvp90@gmail.com>2020-05-20 08:50:48 +0200
committerGitHub <noreply@github.com>2020-05-20 02:50:48 -0400
commiteb5acb39d5936d3e0fde44a33357cda88a5ff55f (patch)
tree8595b6fea985fcedffc1a92cd2f3de49c1c7ceb4 /std/node/_fs/_fs_readFile.ts
parent62c34bc21e8864ec5701ad493c73224367627580 (diff)
feat(std/node): Add fs.promises.readFile (#5656)
Diffstat (limited to 'std/node/_fs/_fs_readFile.ts')
-rw-r--r--std/node/_fs/_fs_readFile.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/node/_fs/_fs_readFile.ts b/std/node/_fs/_fs_readFile.ts
index 900d69f89..ccea71cd6 100644
--- a/std/node/_fs/_fs_readFile.ts
+++ b/std/node/_fs/_fs_readFile.ts
@@ -24,7 +24,7 @@ function maybeDecode(
export function readFile(
path: string | URL,
- optOrCallback: ReadFileCallback | FileOptions | string,
+ optOrCallback: ReadFileCallback | FileOptions | string | undefined,
callback?: ReadFileCallback
): void {
path = path instanceof URL ? fromFileUrl(path) : path;