From f504ccb74350e68188274d7d6b036f69fb1338e9 Mon Sep 17 00:00:00 2001 From: vvakame Date: Tue, 23 Feb 2016 15:33:00 +0900 Subject: [PATCH] fix baconjs/baconjs-tests.ts --- baconjs/baconjs-tests.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/baconjs/baconjs-tests.ts b/baconjs/baconjs-tests.ts index 9557e37cd..ab5b67180 100644 --- a/baconjs/baconjs-tests.ts +++ b/baconjs/baconjs-tests.ts @@ -75,7 +75,7 @@ function CreatingStreams() { var stream = Bacon.fromBinder(sink => { sink("first value"); sink([new Bacon.Next("2nd"), new Bacon.Next("3rd")]); - sink(new Bacon.Next(() => { + sink(new Bacon.Next((): string => { return "This one will be evaluated lazily" })); sink(new Bacon.Error("oops, an error")); @@ -88,7 +88,7 @@ function CreatingStreams() { } new Bacon.Next("value"); - new Bacon.Next(() => "value"); + new Bacon.Next((): string => "value"); } function CommonMethodsInEventStreamsAndProperties() { @@ -296,7 +296,7 @@ function CombiningMultipleStreamsAndProperties() { function $Event() { new Bacon.Next("value"); - new Bacon.Next(() => "value"); + new Bacon.Next((): string => "value"); } function Errors() {