• Watches the given path for changes.

    Parameters

    • path: string

      The path to watch.

    • handler: WatchEventHandler

      Function to be called when an event occurs.

    Returns FileWatcher