diff options
Diffstat (limited to 'tools/node_modules/eslint/node_modules/rxjs/internal/operators/mapTo.d.ts')
-rw-r--r-- | tools/node_modules/eslint/node_modules/rxjs/internal/operators/mapTo.d.ts | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/tools/node_modules/eslint/node_modules/rxjs/internal/operators/mapTo.d.ts b/tools/node_modules/eslint/node_modules/rxjs/internal/operators/mapTo.d.ts deleted file mode 100644 index 6351918170..0000000000 --- a/tools/node_modules/eslint/node_modules/rxjs/internal/operators/mapTo.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { OperatorFunction } from '../types'; -/** - * Emits the given constant value on the output Observable every time the source - * Observable emits a value. - * - * <span class="informal">Like {@link map}, but it maps every source value to - * the same output value every time.</span> - * - * ![](mapTo.png) - * - * Takes a constant `value` as argument, and emits that whenever the source - * Observable emits a value. In other words, ignores the actual source value, - * and simply uses the emission moment to know when to emit the given `value`. - * - * ## Example - * Map every click to the string 'Hi' - * ```javascript - * import { fromEvent } from 'rxjs'; - * import { mapTo } from 'rxjs/operators'; - * - * const clicks = fromEvent(document, 'click'); - * const greetings = clicks.pipe(mapTo('Hi')); - * greetings.subscribe(x => console.log(x)); - * ``` - * - * @see {@link map} - * - * @param {any} value The value to map each source value to. - * @return {Observable} An Observable that emits the given `value` every time - * the source Observable emits something. - * @method mapTo - * @owner Observable - */ -export declare function mapTo<T, R>(value: R): OperatorFunction<T, R>; |