Skip to content

Commit

Permalink
chore: add sigs for naughty devs
Browse files Browse the repository at this point in the history
  • Loading branch information
cartant committed Mar 10, 2021
1 parent 7cb9137 commit 251c32b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/internal/operators/startWith.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ import { OperatorFunction, SchedulerLike, ValueFromArray } from '../types';
import { popScheduler } from '../util/args';
import { operate } from '../util/lift';

// Devs are more likely to pass null or undefined than they are a scheduler
// without accompanying values. To make things easier for (naughty) devs who
// use the `strictNullChecks: false` TypeScript compiler option, these
// overloads with explicit null and undefined values are included.

export function startWith<T>(value: null): OperatorFunction<T, T | null>;
export function startWith<T>(value: undefined): OperatorFunction<T, T | undefined>;

/** @deprecated The scheduler argument is deprecated, use scheduled and concatAll. Details: https://rxjs.dev/deprecations/scheduler-argument */
export function startWith<T, A extends readonly unknown[] = T[]>(
...valuesAndScheduler: [...A, SchedulerLike]
Expand Down

0 comments on commit 251c32b

Please sign in to comment.