Skip to content

@snailicide/build-config / tsconfig / TsConfigJson / WatchOptions

WatchOptions

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

Defined in: node_modules/.pnpm/type-fest@4.41.0/node_modules/type-fest/source/tsconfig-json.d.ts:1130

Properties

PropertyTypeDescriptionDefined in
watchFile?| WatchFileKind | Lowercase<WatchFileKind>Specify the strategy for watching individual files. Default 'UseFsEvents'node_modules/.pnpm/type-fest@4.41.0/node_modules/type-fest/source/tsconfig-json.d.ts:1159
watchDirectory?| WatchDirectoryKind | Lowercase<WatchDirectoryKind>Specify the strategy for watching directories under systems that lack recursive file-watching functionality. Default 'UseFsEvents'node_modules/.pnpm/type-fest@4.41.0/node_modules/type-fest/source/tsconfig-json.d.ts:1166
fallbackPolling?| PollingWatchKind | Lowercase<PollingWatchKind>Specify the polling strategy to use when the system runs out of or doesn't support native file watchers.node_modules/.pnpm/type-fest@4.41.0/node_modules/type-fest/source/tsconfig-json.d.ts:1171
synchronousWatchDirectory?booleanEnable synchronous updates on directory watchers for platforms that don't support recursive watching natively.node_modules/.pnpm/type-fest@4.41.0/node_modules/type-fest/source/tsconfig-json.d.ts:1176
excludeDirectories?string[]Specifies a list of directories to exclude from watch.node_modules/.pnpm/type-fest@4.41.0/node_modules/type-fest/source/tsconfig-json.d.ts:1181
excludeFiles?string[]Specifies a list of files to exclude from watch.node_modules/.pnpm/type-fest@4.41.0/node_modules/type-fest/source/tsconfig-json.d.ts:1186