Skip to content

Commit

Permalink
fix: πŸ› refactor #watchFile to be compatible w/ strictNullChecks
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Jul 7, 2019
1 parent 0a6b4a6 commit 2c02287
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/volume.ts
Expand Up @@ -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') {
Expand Down

0 comments on commit 2c02287

Please sign in to comment.