Skip to content
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.

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

Open
zeuzere opened this issue Apr 15, 2018 · 1 comment
Open

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

zeuzere opened this issue Apr 15, 2018 · 1 comment

Comments

@zeuzere
Copy link

zeuzere commented Apr 15, 2018

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
Copy link
Author

zeuzere commented Apr 15, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant