Skip to content

Commit

Permalink
chore: fix dtslint
Browse files Browse the repository at this point in the history
  • Loading branch information
benlesh committed Apr 2, 2020
1 parent f2654a1 commit 466295f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
4 changes: 2 additions & 2 deletions spec/operators/single-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ describe('single operator', () => {
it('should raise error from empty predicate if observable emits error', () => {
rxTest.run(({ hot, expectObservable, expectSubscriptions }) => {
const e1 = hot(' --a--b^--#');
const e1subs = ' ^--!';
const expected = '---#';
const e1subs = ' ^--!';
const expected = ' ---#';

expectObservable(e1.pipe(single())).toBe(expected);
expectSubscriptions(e1.subscriptions).toBe(e1subs);
Expand Down
9 changes: 0 additions & 9 deletions src/internal/operators/single.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,6 @@ import { NotFoundError } from '../util/NotFoundError';

const defaultPredicate = () => true;

export function single<T>(): MonoTypeOperatorFunction<T>;
export function single<T>(
predicate: (value: T, index: number) => boolean
): MonoTypeOperatorFunction<T>;
/** @deprecated Providing `source` via the third argument to the predicate will be removed in upcoming versions. Use a closure. */
export function single<T>(
predicate: (value: T, index: number, source: Observable<T>) => boolean
): MonoTypeOperatorFunction<T>;

/**
* Returns an observable that asserts that only one value is
* emitted from the observable that matches the predicate. If no
Expand Down

0 comments on commit 466295f

Please sign in to comment.