watchFile
Call Signature
Section titled “Call Signature”watchFile(
this,path,listener):StatWatcher
Defined in: src/node/async.ts:601
Watch for changes on a file. The listener is called with the current and previous Stats whenever they differ.
Every call for the same file returns the same StatWatcher.
Parameters
Section titled “Parameters”unknown
PathLike
listener
Section titled “listener”(curr, prev) => void
Returns
Section titled “Returns”StatWatcher
Call Signature
Section titled “Call Signature”watchFile(
this,path,options,listener):StatWatcher
Defined in: src/node/async.ts:602
Watch for changes on a file. The listener is called with the current and previous Stats whenever they differ.
Every call for the same file returns the same StatWatcher.
Parameters
Section titled “Parameters”unknown
PathLike
options
Section titled “options”WatchFileOptions & object
bigint, persistent, and interval (in milliseconds)
listener
Section titled “listener”(curr, prev) => void
Returns
Section titled “Returns”StatWatcher
Call Signature
Section titled “Call Signature”watchFile(
this,path,options,listener):StatWatcher
Defined in: src/node/async.ts:608
Watch for changes on a file. The listener is called with the current and previous Stats whenever they differ.
Every call for the same file returns the same StatWatcher.
Parameters
Section titled “Parameters”unknown
PathLike
options
Section titled “options”WatchFileOptions & object
bigint, persistent, and interval (in milliseconds)
listener
Section titled “listener”(curr, prev) => void
Returns
Section titled “Returns”StatWatcher