You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`.
3378
-
* @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
3379
-
* @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options.
3380
-
* If `encoding` is not supplied, the default of `'utf8'` is used.
3381
-
* If `persistent` is not supplied, the default of `true` is used.
3382
-
* If `recursive` is not supplied, the default of `false` is used.
3383
-
*/
3384
3379
exportfunctionwatch(
3385
3380
filename: PathLike,
3386
-
options?: WatchOptions|BufferEncoding|null,
3387
-
listener?: WatchListener<string>,
3381
+
options: WatchOptionsWithBufferEncoding|"buffer",
3382
+
listener: WatchListener<Buffer>,
3388
3383
): FSWatcher;
3389
-
/**
3390
-
* Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`.
3391
-
* @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
3392
-
* @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options.
3393
-
* If `encoding` is not supplied, the default of `'utf8'` is used.
3394
-
* If `persistent` is not supplied, the default of `true` is used.
3395
-
* If `recursive` is not supplied, the default of `false` is used.
* Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`.
1225
-
* @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
1226
-
* @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options.
1227
-
* If `encoding` is not supplied, the default of `'utf8'` is used.
1228
-
* If `persistent` is not supplied, the default of `true` is used.
1229
-
* If `recursive` is not supplied, the default of `false` is used.
* Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`.
1234
-
* @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
1235
-
* @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options.
1236
-
* If `encoding` is not supplied, the default of `'utf8'` is used.
1237
-
* If `persistent` is not supplied, the default of `true` is used.
1238
-
* If `recursive` is not supplied, the default of `false` is used.
0 commit comments