Skip to content

Commit

Permalink
remove any, use unknown instead
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed Sep 7, 2021
1 parent d0c5dd4 commit 109afae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/watch/fsevents-importer.ts
@@ -1,4 +1,4 @@
let fsEvents: any; // TODO find better type solution, fsevents is only being installed on macOS
let fsEvents: unknown;
let fsEventsImportError: Error | undefined;

const mod = 'fsevents';
Expand All @@ -14,7 +14,7 @@ export function loadFsEvents(): Promise<void> {
}

// A call to this function will be injected into the chokidar code
export function getFsEvents(): any {
export function getFsEvents(): unknown {
if (fsEventsImportError) throw fsEventsImportError;
return fsEvents;
}

0 comments on commit 109afae

Please sign in to comment.