From ed6e1ef28758b49f7f40c3588f2d34424687fdb0 Mon Sep 17 00:00:00 2001 From: OJ Kwon Date: Mon, 20 Jun 2016 12:57:26 -0700 Subject: [PATCH] fix(Subject): allow type definition to next value optionally closes #1728 --- src/Subject.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Subject.ts b/src/Subject.ts index a970cc6aa2..257cb3ab2d 100644 --- a/src/Subject.ts +++ b/src/Subject.ts @@ -49,7 +49,7 @@ export class Subject extends Observable implements ISubscription { return subject; } - next(value: T) { + next(value?: T) { if (this.isUnsubscribed) { throw new ObjectUnsubscribedError(); }