mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-04 12:10:30 +08:00
fix baconjs/baconjs-tests.ts
This commit is contained in:
1 parent
9d11eef8b7
commit
f504ccb743
1 file changed
+3
-3
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user