diff options
Diffstat (limited to 'tools/node_modules/eslint/node_modules/rxjs/internal/operators/sequenceEqual.d.ts')
-rw-r--r-- | tools/node_modules/eslint/node_modules/rxjs/internal/operators/sequenceEqual.d.ts | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/tools/node_modules/eslint/node_modules/rxjs/internal/operators/sequenceEqual.d.ts b/tools/node_modules/eslint/node_modules/rxjs/internal/operators/sequenceEqual.d.ts index 636b6cbe23..39d250832f 100644 --- a/tools/node_modules/eslint/node_modules/rxjs/internal/operators/sequenceEqual.d.ts +++ b/tools/node_modules/eslint/node_modules/rxjs/internal/operators/sequenceEqual.d.ts @@ -3,7 +3,7 @@ import { Observable } from '../Observable'; import { Subscriber } from '../Subscriber'; import { Observer, OperatorFunction } from '../types'; /** - * Compares all values of two observables in sequence using an optional comparor function + * Compares all values of two observables in sequence using an optional comparator function * and returns an observable of a single boolean value representing whether or not the two sequences * are equal. * @@ -21,6 +21,9 @@ import { Observer, OperatorFunction } from '../types'; * ## Example * figure out if the Konami code matches * ```javascript + * import { from, fromEvent } from 'rxjs'; + * import { sequenceEqual, bufferCount, mergeMap, map } from 'rxjs/operators'; + * * const codes = from([ * 'ArrowUp', * 'ArrowUp', @@ -50,17 +53,17 @@ import { Observer, OperatorFunction } from '../types'; * @see {@link withLatestFrom} * * @param {Observable} compareTo The observable sequence to compare the source sequence to. - * @param {function} [comparor] An optional function to compare each value pair + * @param {function} [comparator] An optional function to compare each value pair * @return {Observable} An Observable of a single boolean value representing whether or not * the values emitted by both observables were equal in sequence. * @method sequenceEqual * @owner Observable */ -export declare function sequenceEqual<T>(compareTo: Observable<T>, comparor?: (a: T, b: T) => boolean): OperatorFunction<T, boolean>; +export declare function sequenceEqual<T>(compareTo: Observable<T>, comparator?: (a: T, b: T) => boolean): OperatorFunction<T, boolean>; export declare class SequenceEqualOperator<T> implements Operator<T, boolean> { private compareTo; - private comparor; - constructor(compareTo: Observable<T>, comparor: (a: T, b: T) => boolean); + private comparator; + constructor(compareTo: Observable<T>, comparator: (a: T, b: T) => boolean); call(subscriber: Subscriber<boolean>, source: any): any; } /** @@ -70,11 +73,11 @@ export declare class SequenceEqualOperator<T> implements Operator<T, boolean> { */ export declare class SequenceEqualSubscriber<T, R> extends Subscriber<T> { private compareTo; - private comparor; + private comparator; private _a; private _b; private _oneComplete; - constructor(destination: Observer<R>, compareTo: Observable<T>, comparor: (a: T, b: T) => boolean); + constructor(destination: Observer<R>, compareTo: Observable<T>, comparator: (a: T, b: T) => boolean); protected _next(value: T): void; _complete(): void; checkValues(): void; |