Skip to content

Commit

Permalink
fix: observable subscribe overloads
Browse files Browse the repository at this point in the history
  • Loading branch information
vthinkxie committed Dec 13, 2021
1 parent 081ca2b commit a7b79ef
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/internal/Observable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ export class Observable<T> implements Subscribable<T> {
return observable;
}

subscribe(observer?: Partial<Observer<T>>): Subscription;
subscribe(next: (value: T) => void): Subscription;
subscribe(observer?: Partial<Observer<T>> | ((value: T) => void)): Subscription;
/** @deprecated Instead of passing separate callback arguments, use an observer argument. Signatures taking separate callback arguments will be removed in v8. Details: https://rxjs.dev/deprecations/subscribe-arguments */
subscribe(next?: ((value: T) => void) | null, error?: ((error: any) => void) | null, complete?: (() => void) | null): Subscription;
/**
Expand Down

0 comments on commit a7b79ef

Please sign in to comment.