Skip to content

Commit

Permalink
chore(Subscriber): add comment why Subscriber.destination is 'Partial…
Browse files Browse the repository at this point in the history
…Observer<any>' (#1750)
  • Loading branch information
Tetsuharu OHZEKI authored and benlesh committed Jul 1, 2016
1 parent 4bce18c commit 5158f27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Subscriber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class Subscriber<T> extends Subscription implements Observer<T> {
public syncErrorThrowable: boolean = false;

protected isStopped: boolean = false;
protected destination: PartialObserver<any>;
protected destination: PartialObserver<any>; // this `any` is the escape hatch to erase extra type param (e.g. R)

/**
* @param {Observer|function(value: T): void} [destinationOrNext] A partially
Expand Down

0 comments on commit 5158f27

Please sign in to comment.