-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue
Milestone
Description
TypeScript Version: nightly (2.5.0-dev.20170613)
Code
test-externclassdef.js
class Foo {
constructor() {}
}
exports.Foo = Foo;test-externclass.js
const {Foo} = require('./test-externclassdef');
const Stuff = require('./test-externclassdef');
// this works now
/** @type {Foo} */
let a = new Foo();
// this is still an error
/** @type {Stuff.Foo} */
let b = new Stuff.Foo();Expected behavior:
No error
Actual behavior:
test-externclass.js(9,12): error TS2503: Cannot find namespace 'Stuff'.
#16316 fixes the first kind of import (which I'm really thankful for), but the second kind is still an error.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue