Open
Description
TypeScript Version: 2.9.0-dev.20180430
Code
class Circle {};
class Rectangle {};
const Shapes = {Circle, Rectangle};
// `Shapes` imported into another file
class Square extends Shapes.Rectangle {
/**
* @param {Shapes.Circle} circle
*/
intersects(circle) {
//
}
}
Typecheck using:
tsc --checkjs --allowjs --noemit sample.js
Actual behavior:
sample.js(10,23): error TS2694: Namespace 'Shapes' has no exported member 'Circle'.