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

Unclear type alias shown for node parameter hint #32493

Closed
mjbvz opened this issue Jul 20, 2019 · 3 comments
Closed

Unclear type alias shown for node parameter hint #32493

mjbvz opened this issue Jul 20, 2019 · 3 comments
Labels
Duplicate An existing issue was already created

Comments

@mjbvz
Copy link
Contributor

mjbvz commented Jul 20, 2019

From microsoft/vscode#76957
TypeScript Version: [email protected]

Search Terms:

  • d.ts
  • quick info
  • hover

Code

For the following javascript, trigger parameter hints on createServer

const http = require('http'); 
http.createServer(

Expected behavior:
The function signature of first parameter is shown.

Actual behavior:
We show a type alias: http.RequestListener. Node defines this type as:

    type RequestListener = (req: IncomingMessage, res: ServerResponse) => void;

Playground Link:

Related Issues:

@mjbvz
Copy link
Contributor Author

mjbvz commented Jul 20, 2019

This would be solved by the interactive quick info proposals we've discussed

@RyanCavanaugh
Copy link
Member

Duplicate #25784 ?

@mjbvz
Copy link
Contributor Author

mjbvz commented Jul 23, 2019

Yes. I can't find the interactive hover issue but that would fix these issues

@mjbvz mjbvz closed this as completed Jul 23, 2019
@mjbvz mjbvz added the Duplicate An existing issue was already created label Jul 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

2 participants