WatchOptions: {
    excludeDirectories?: string[];
    excludeFiles?: string[];
    fallbackPolling?: PollingWatchKind | Lowercase<PollingWatchKind>;
    synchronousWatchDirectory?: boolean;
    watchDirectory?: WatchDirectoryKind | Lowercase<WatchDirectoryKind>;
    watchFile?: WatchFileKind | Lowercase<WatchFileKind>;
}

Type declaration

  • OptionalexcludeDirectories?: string[]

    Specifies a list of directories to exclude from watch

  • OptionalexcludeFiles?: string[]

    Specifies a list of files to exclude from watch

  • OptionalfallbackPolling?: PollingWatchKind | Lowercase<PollingWatchKind>

    Specify the polling strategy to use when the system runs out of or doesn't support native file watchers.

  • OptionalsynchronousWatchDirectory?: boolean

    Enable synchronous updates on directory watchers for platforms that don't support recursive watching natively.

  • OptionalwatchDirectory?: WatchDirectoryKind | Lowercase<WatchDirectoryKind>

    Specify the strategy for watching directories under systems that lack recursive file-watching functionality.

    'UseFsEvents'
    
  • OptionalwatchFile?: WatchFileKind | Lowercase<WatchFileKind>

    Specify the strategy for watching individual files.

    'UseFsEvents'