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'.'