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>

13 lines (12 loc) 884 B
import { Observable } from 'rxjs'; import { ObservableSet } from '../../../classes'; /** * Function to trigger an action when any of the provided dependencies changes. * * This function returns an Observable that emits a void value whenever any of the files in the provided dependencies set changes. * The Observable is created by merging Observables that emit on file changes for each dependency. * When a file changes, the function filters out events that are not updates, maps the event to a void value, and emits the void value. * @param {ObservableSet<string>} dependencies - An ObservableSet of file paths to watch for changes. * @returns {Observable<void>} - An Observable that emits a void value whenever any of the files in the provided dependencies set changes. */ export declare function onDependenciesChange(dependencies: ObservableSet<string>): Observable<void>;