summaryrefslogtreecommitdiff
path: root/tools/node_modules/eslint/node_modules/rxjs/internal/operators/sample.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tools/node_modules/eslint/node_modules/rxjs/internal/operators/sample.d.ts')
-rw-r--r--tools/node_modules/eslint/node_modules/rxjs/internal/operators/sample.d.ts43
1 files changed, 0 insertions, 43 deletions
diff --git a/tools/node_modules/eslint/node_modules/rxjs/internal/operators/sample.d.ts b/tools/node_modules/eslint/node_modules/rxjs/internal/operators/sample.d.ts
deleted file mode 100644
index 5afcdda525..0000000000
--- a/tools/node_modules/eslint/node_modules/rxjs/internal/operators/sample.d.ts
+++ /dev/null
@@ -1,43 +0,0 @@
-import { Observable } from '../Observable';
-import { MonoTypeOperatorFunction } from '../types';
-/**
- * Emits the most recently emitted value from the source Observable whenever
- * another Observable, the `notifier`, emits.
- *
- * <span class="informal">It's like {@link sampleTime}, but samples whenever
- * the `notifier` Observable emits something.</span>
- *
- * ![](sample.png)
- *
- * Whenever the `notifier` Observable emits a value or completes, `sample`
- * looks at the source Observable and emits whichever value it has most recently
- * emitted since the previous sampling, unless the source has not emitted
- * anything since the previous sampling. The `notifier` is subscribed to as soon
- * as the output Observable is subscribed.
- *
- * ## Example
- * On every click, sample the most recent "seconds" timer
- * ```javascript
- * import { fromEvent, interval } from 'rxjs';
- * import { sample } from 'rxjs/operators';
- *
- * const seconds = interval(1000);
- * const clicks = fromEvent(document, 'click');
- * const result = seconds.pipe(sample(clicks));
- * result.subscribe(x => console.log(x));
- * ```
- *
- * @see {@link audit}
- * @see {@link debounce}
- * @see {@link sampleTime}
- * @see {@link throttle}
- *
- * @param {Observable<any>} notifier The Observable to use for sampling the
- * source Observable.
- * @return {Observable<T>} An Observable that emits the results of sampling the
- * values emitted by the source Observable whenever the notifier Observable
- * emits value or completes.
- * @method sample
- * @owner Observable
- */
-export declare function sample<T>(notifier: Observable<any>): MonoTypeOperatorFunction<T>;