File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,12 @@ export class Observable<T> implements Subscribable<T> {
70
70
}
71
71
72
72
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 ;
73
79
subscribe ( next ?: ( value : T ) => void , error ?: ( error : any ) => void , complete ?: ( ) => void ) : Subscription ;
74
80
/**
75
81
* 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';
6
6
import { isFunction } from '../util/isFunction' ;
7
7
8
8
/* 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 > ;
9
15
export function tap < T > ( next ?: ( x : T ) => void , error ?: ( e : any ) => void , complete ?: ( ) => void ) : MonoTypeOperatorFunction < T > ;
10
16
export function tap < T > ( observer : PartialObserver < T > ) : MonoTypeOperatorFunction < T > ;
11
17
/* 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
40
40
41
41
export interface Subscribable < T > {
42
42
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 ;
43
49
subscribe ( next ?: ( value : T ) => void , error ?: ( error : any ) => void , complete ?: ( ) => void ) : Unsubscribable ;
44
50
}
45
51
You can’t perform that action at this time.
0 commit comments