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

JSDoc cannot resolve namespaces from required modules #19476

Closed
mjbvz opened this issue Oct 25, 2017 · 2 comments
Closed

JSDoc cannot resolve namespaces from required modules #19476

mjbvz opened this issue Oct 25, 2017 · 2 comments
Labels
Duplicate An existing issue was already created

Comments

@mjbvz
Copy link
Contributor

mjbvz commented Oct 25, 2017

TypeScript Version: 2.7.0-dev.201xxxxx

Follow up on #14056

Code
In a simple JS node project, with index.js:

const stream = require('stream')

/**
 * @param {stream.Readable} stream
 */
function foo(stream) { ... }

Expected behavior:
stream.Readable is correctly resolved even though it is really used as value here

Actual behavior:
Error: 'Cannot find namespace 'stream'.'

@mhegazy
Copy link
Contributor

mhegazy commented Oct 25, 2017

Duplicate of #16489

@mhegazy mhegazy marked this as a duplicate of #16489 Oct 25, 2017
@mhegazy mhegazy added the Duplicate An existing issue was already created label Oct 25, 2017
@mjbvz
Copy link
Contributor Author

mjbvz commented Oct 25, 2017

Thanks @mhegazy! Closing as duplicate of #16489

@mjbvz mjbvz closed this as completed Oct 25, 2017
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

2 participants