mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-10 11:40:16 +08:00
fix rx.async-tests.ts
This commit is contained in:
@@ -18,9 +18,9 @@ module Rx.Tests.Async {
|
||||
function toAsync() {
|
||||
obsNum = Rx.Observable.toAsync(()=> 1, sch)();
|
||||
obsNum = Rx.Observable.toAsync((a1: number)=> a1)(1);
|
||||
obsStr = Rx.Observable.toAsync((a1: string, a2: number)=> a1 + a2.toFixed(0))("", 1);
|
||||
obsStr = Rx.Observable.toAsync((a1: string, a2: number, a3: Date)=> a1 + a2.toFixed(0) + a3.toDateString())("", 1, new Date());
|
||||
obsStr = Rx.Observable.toAsync((a1: string, a2: number, a3: Date, a4: boolean)=> a1 + a2.toFixed(0) + a3.toDateString() + (a4 ? 1 : 0))("", 1, new Date(), false);
|
||||
obsStr = <any>Rx.Observable.toAsync((a1: string, a2: number)=> a1 + a2.toFixed(0))("", 1);
|
||||
obsStr = <any>Rx.Observable.toAsync((a1: string, a2: number, a3: Date)=> a1 + a2.toFixed(0) + a3.toDateString())("", 1, new Date());
|
||||
obsStr = <any>Rx.Observable.toAsync((a1: string, a2: number, a3: Date, a4: boolean)=> a1 + a2.toFixed(0) + a3.toDateString() + (a4 ? 1 : 0))("", 1, new Date(), false);
|
||||
}
|
||||
|
||||
function fromCallback() {
|
||||
|
||||
Reference in New Issue
Block a user