Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hostReportError.ts calls setTimeout without passing ms, breaks @types/node #4700

Closed
scaraux opened this issue Apr 10, 2019 · 1 comment
Closed

Comments

@scaraux
Copy link
Contributor

scaraux commented Apr 10, 2019

Bug Report

Current Behavior

Trying to compile with latest version of rxjs and @types/node, I get the following error:

node_modules/rxjs/src/internal/util/hostReportError.ts:7:3 - error TS2555: Expected at least 2 arguments, but got 1.

7   setTimeout(() => { throw err; });
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 node_modules/@types/node/index.d.ts:123:65
    123 declare function setTimeout(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.Timer;
                                                                        ~~~~~~~~~~
    An argument for 'ms' was not provided.

Expected behavior

Should compile without any issue

Environment

  • Runtime: Node v11.7.0
  • RxJS version: 6.3.3
  • @types/node: 8.10.45
  • tsc: 3.2.4
@cartant
Copy link
Collaborator

cartant commented Apr 21, 2019

Closed by #4701.

@cartant cartant closed this as completed Apr 21, 2019
@lock lock bot locked as resolved and limited conversation to collaborators May 21, 2019
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

2 participants