diff options
author | Ry Dahl <ry@tinyclouds.org> | 2019-11-14 15:05:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-14 15:05:36 -0500 |
commit | 4902a1cacb0348efde9ab342172f2706ac27e837 (patch) | |
tree | abbc0dbdcc03b232d01274cea0940a377223a767 /std/node | |
parent | 8b90b8e88325d28fe41d8312ea91417b6e66a12e (diff) |
Turn on TS strict mode for deno_typescript (#3330)
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; |