From 4902a1cacb0348efde9ab342172f2706ac27e837 Mon Sep 17 00:00:00 2001 From: Ry Dahl Date: Thu, 14 Nov 2019 15:05:36 -0500 Subject: Turn on TS strict mode for deno_typescript (#3330) --- std/node/fs.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'std') 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, + data: MaybeEmpty +) => void; interface ReadFileOptions { encoding?: string | null; -- cgit v1.2.3