Reactive-Extensions / RxJS-DOM

HTML DOM Bindings for the Reactive Extensions for JavaScript
http://reactivex.io
Other
437 stars 99 forks source link

I get Error: Invalid arguments when using .delay(1500) #140

Open zeuzere opened 6 years ago

zeuzere commented 6 years ago

I get Error: Invalid arguments when i use
return Rx.Observable.of(null).delay(1500)......

When i use the original Rx, i have no error, when i use the extension i get this error... I saw the original use number | Date while the rx-dom use 2 seperate function...

Any one know how to resolve this ?

I'm using nodejs, Typescript and types/rx-dom

zeuzere commented 6 years ago

Well i resolved this by using var retryAfterDelay = new Date(); retryAfterDelay.setSeconds(retryAfterDelay.getSeconds() + (retryAfter/1000) )

so i use the Date instead of the number...

But how to use with number ? instead of Date