We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e52b5ff commit 3ddea61Copy full SHA for 3ddea61
packages/metro-file-map/src/watchers/FSEventsWatcher.js
@@ -11,6 +11,7 @@
11
import type {ChangeEventMetadata} from '../flow-types';
12
import type {Stats} from 'fs';
13
// $FlowFixMe[cannot-resolve-module] - Optional, Darwin only
14
+// $FlowFixMe[untyped-type-import]
15
import type {FSEvents} from 'fsevents';
16
17
import {isIncluded, typeFromStat} from './common';
@@ -26,9 +27,11 @@ const debug = require('debug')('Metro:FSEventsWatcher');
26
27
28
type Matcher = typeof anymatch.Matcher;
29
30
+// $FlowFixMe[value-as-type]
31
let fsevents: ?FSEvents = null;
32
try {
33
34
+ // $FlowFixMe[untyped-import]
35
fsevents = require('fsevents');
36
} catch {
37
// Optional dependency, only supported on Darwin.
0 commit comments