跳到內容

WatchOptions

本頁內容尚未翻譯。

Defined in: index.ts:119

  • WatchOptions
readonly debounce?: Input;

Defined in: index.ts:120


readonly filter?: (path: string) => boolean;

Defined in: index.ts:122

Receives an absolute file path; applies to native events and reconciliation.

Parameter Type
path string

boolean


readonly onReady?: () => void;

Defined in: ../../../node_modules/.pnpm/effect@4.1.2/node_modules/effect/dist/FileSystem.d.ts:823

Called once the underlying watcher is installed and can buffer events. Stream construction alone does not install a watcher. Custom watch backends must also call this callback after installation, when supplied.

void

FileSystem.WatchOptions.onReady


readonly recursive?: boolean;

Defined in: ../../../node_modules/.pnpm/effect@4.1.2/node_modules/effect/dist/FileSystem.d.ts:817

When true, changes in subdirectories are also reported.

FileSystem.WatchOptions.recursive