Skip to content

Commit

Permalink
fix(fsevents): use any
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed Sep 3, 2021
1 parent 5103e89 commit 094753b
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: typeof import('fsevents');
let fsEvents: any; // TODO find better type solution, fsevents is only being installed on macOS
let fsEventsImportError: Error | undefined;

export function loadFsEvents(): Promise<void> {
Expand All @@ -12,7 +12,7 @@ export function loadFsEvents(): Promise<void> {
}

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

0 comments on commit 094753b

Please sign in to comment.