summaryrefslogtreecommitdiff
path: root/std/node
diff options
context:
space:
mode:
Diffstat (limited to 'std/node')
-rw-r--r--std/node/fs.ts11
1 files changed, 9 insertions, 2 deletions
diff --git a/std/node/fs.ts b/std/node/fs.ts
index 01b9e2398..539916c9e 100644
--- a/std/node/fs.ts
+++ b/std/node/fs.ts
@@ -1,7 +1,14 @@
-import { notImplemented, intoCallbackAPIWithIntercept } from "./_utils.ts";
+import {
+ notImplemented,
+ intoCallbackAPIWithIntercept,
+ MaybeEmpty
+} from "./_utils.ts";
const { readFile: denoReadFile, readFileSync: denoReadFileSync } = Deno;
-type ReadFileCallback = (err: Error | null, data: string | Uint8Array) => void;
+type ReadFileCallback = (
+ err: MaybeEmpty<Error>,
+ data: MaybeEmpty<string | Uint8Array>
+) => void;
interface ReadFileOptions {
encoding?: string | null;