Skip to content

Commit

Permalink
Merge pull request #1349 from benmccann/patch-1
Browse files Browse the repository at this point in the history
fix: allow second argument to be `undefined`
  • Loading branch information
paulmillr authored Sep 13, 2024
2 parents ac8210f + d75ef42 commit 9d87bf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,7 @@ export class FSWatcher extends EventEmitter {
* @param options chokidar opts
* @returns an instance of FSWatcher for chaining.
*/
export const watch = (paths: string | string[], options: ChokidarOptions): FSWatcher => {
export const watch = (paths: string | string[], options?: ChokidarOptions): FSWatcher => {
const watcher = new FSWatcher(options);
watcher.add(paths);
return watcher;
Expand Down

0 comments on commit 9d87bf0

Please sign in to comment.