From 2c02287f2cbdf16197ad1d67f7a9ca022bebf6af Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Sun, 7 Jul 2019 14:15:11 +1200 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20refactor=20`#watchFile`?= =?UTF-8?q?=20to=20be=20compatible=20w/=20`strictNullChecks`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/volume.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/volume.ts b/src/volume.ts index 191c390b..55049cce 100644 --- a/src/volume.ts +++ b/src/volume.ts @@ -2037,7 +2037,7 @@ export class Volume { watchFile(path: TFilePath, a, b?): StatWatcher { const filename = pathToFilename(path); - let options: IWatchFileOptions = a; + let options: IWatchFileOptions | null = a; let listener: (curr: Stats, prev: Stats) => void = b; if (typeof options === 'function') {