Skip to content

Commit

Permalink
fix(Subject): allow optional next value in type definition
Browse files Browse the repository at this point in the history
closes #1728
  • Loading branch information
kwonoj committed Jun 20, 2016
1 parent 97d43fe commit 3e0c6d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Subject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class Subject<T> extends Observable<T> implements ISubscription {
return <any>subject;
}

next(value: T) {
next(value?: T) {
if (this.isUnsubscribed) {
throw new ObjectUnsubscribedError();
}
Expand Down

0 comments on commit 3e0c6d9

Please sign in to comment.