File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -70,6 +70,12 @@ export class Observable<T> implements Subscribable<T> {
7070 }
7171
7272 subscribe ( observer ?: PartialObserver < T > ) : Subscription ;
73+ /** @deprecated Use an observer instead of a complete callback */
74+ subscribe ( next : null | undefined , error : null | undefined , complete : ( ) => void ) : Subscription ;
75+ /** @deprecated Use an observer instead of an error callback */
76+ subscribe ( next : null | undefined , error : ( error : any ) => void , complete ?: ( ) => void ) : Subscription ;
77+ /** @deprecated Use an observer instead of a complete callback */
78+ subscribe ( next : ( value : T ) => void , error : null | undefined , complete : ( ) => void ) : Subscription ;
7379 subscribe ( next ?: ( value : T ) => void , error ?: ( error : any ) => void , complete ?: ( ) => void ) : Subscription ;
7480 /**
7581 * Invokes an execution of an Observable and registers Observer handlers for notifications it will emit.
Original file line number Diff line number Diff line change @@ -6,6 +6,12 @@ import { noop } from '../util/noop';
66import { isFunction } from '../util/isFunction' ;
77
88/* tslint:disable:max-line-length */
9+ /** @deprecated Use an observer instead of a complete callback */
10+ export function tap < T > ( next : null | undefined , error : null | undefined , complete : ( ) => void ) : MonoTypeOperatorFunction < T > ;
11+ /** @deprecated Use an observer instead of an error callback */
12+ export function tap < T > ( next : null | undefined , error : ( error : any ) => void , complete ?: ( ) => void ) : MonoTypeOperatorFunction < T > ;
13+ /** @deprecated Use an observer instead of a complete callback */
14+ export function tap < T > ( next : ( value : T ) => void , error : null | undefined , complete : ( ) => void ) : MonoTypeOperatorFunction < T > ;
915export function tap < T > ( next ?: ( x : T ) => void , error ?: ( e : any ) => void , complete ?: ( ) => void ) : MonoTypeOperatorFunction < T > ;
1016export function tap < T > ( observer : PartialObserver < T > ) : MonoTypeOperatorFunction < T > ;
1117/* tslint:enable:max-line-length */
Original file line number Diff line number Diff line change @@ -40,6 +40,12 @@ export type SubscribableOrPromise<T> = Subscribable<T> | Subscribable<never> | P
4040
4141export interface Subscribable < T > {
4242 subscribe ( observer ?: PartialObserver < T > ) : Unsubscribable ;
43+ /** @deprecated Use an observer instead of a complete callback */
44+ subscribe ( next : null | undefined , error : null | undefined , complete : ( ) => void ) : Unsubscribable ;
45+ /** @deprecated Use an observer instead of an error callback */
46+ subscribe ( next : null | undefined , error : ( error : any ) => void , complete ?: ( ) => void ) : Unsubscribable ;
47+ /** @deprecated Use an observer instead of a complete callback */
48+ subscribe ( next : ( value : T ) => void , error : null | undefined , complete : ( ) => void ) : Unsubscribable ;
4349 subscribe ( next ?: ( value : T ) => void , error ?: ( error : any ) => void , complete ?: ( ) => void ) : Unsubscribable ;
4450}
4551
You can’t perform that action at this time.
0 commit comments