diff --git a/src/operator/do.ts b/src/operator/do.ts index 652946fbec..afdc40fa04 100644 --- a/src/operator/do.ts +++ b/src/operator/do.ts @@ -48,7 +48,7 @@ import { TeardownLogic } from '../Subscription'; * @owner Observable */ /* tslint:disable:max-line-length */ -export function _do(next: (x: T) => void, error?: (e: any) => void, complete?: (this: Observable) => void): Observable; +export function _do(this: Observable, next: (x: T) => void, error?: (e: any) => void, complete?: () => void): Observable; export function _do(this: Observable, observer: PartialObserver): Observable; /* tslint:disable:max-line-length */ export function _do(this: Observable, nextOrObserver?: PartialObserver | ((x: T) => void),