From d55b767039605256c736166a942a9138e3eacfd7 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Sun, 29 Jun 2025 11:49:28 -0700 Subject: remove dev node_modules (oops) --- node_modules/rxjs/src/internal/operators/mapTo.ts | 48 ----------------------- 1 file changed, 48 deletions(-) delete mode 100644 node_modules/rxjs/src/internal/operators/mapTo.ts (limited to 'node_modules/rxjs/src/internal/operators/mapTo.ts') diff --git a/node_modules/rxjs/src/internal/operators/mapTo.ts b/node_modules/rxjs/src/internal/operators/mapTo.ts deleted file mode 100644 index 9fb8a8e..0000000 --- a/node_modules/rxjs/src/internal/operators/mapTo.ts +++ /dev/null @@ -1,48 +0,0 @@ -import { OperatorFunction } from '../types'; -import { map } from './map'; - -/** @deprecated To be removed in v9. Use {@link map} instead: `map(() => value)`. */ -export function mapTo(value: R): OperatorFunction; -/** - * @deprecated Do not specify explicit type parameters. Signatures with type parameters - * that cannot be inferred will be removed in v8. `mapTo` itself will be removed in v9, - * use {@link map} instead: `map(() => value)`. - * */ -export function mapTo(value: R): OperatorFunction; - -/** - * Emits the given constant value on the output Observable every time the source - * Observable emits a value. - * - * Like {@link map}, but it maps every source value to - * the same output value every time. - * - * ![](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'` - * - * ```ts - * import { fromEvent, mapTo } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const greetings = clicks.pipe(mapTo('Hi')); - * - * greetings.subscribe(x => console.log(x)); - * ``` - * - * @see {@link map} - * - * @param value The value to map each source value to. - * @return A function that returns an Observable that emits the given `value` - * every time the source Observable emits. - * @deprecated To be removed in v9. Use {@link map} instead: `map(() => value)`. - */ -export function mapTo(value: R): OperatorFunction { - return map(() => value); -} -- cgit v1.2.3