UNPKG

@ng-doc/builder

Version:

<!-- PROJECT LOGO --> <br /> <div align="center"> <a href="https://github.com/ng-doc/ng-doc"> <img src="https://ng-doc.com/assets/images/ng-doc.svg?raw=true" alt="Logo" height="150px"> </a>

10 lines (9 loc) 473 B
import watcher from '@parcel/watcher'; import { Observable } from 'rxjs'; /** * Function to watch a specific file for changes. * @param {string} filePath - The path of the file to watch. * @param type - The type of event to watch for. * @returns {Observable<watcher.Event>} - An Observable that emits an event whenever the file changes. */ export declare function watchFile(filePath: string, type?: watcher.EventType | watcher.EventType[]): Observable<watcher.Event>;