diff options
Diffstat (limited to 'std/node')
-rw-r--r-- | std/node/fs.ts | 11 |
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; |