TypeScript Version: 2.1.1
Code
import*asBasefrom'base';classDerivedextendsBase{// error TS2507: Type 'any' is not a constructor function type.}Expected behavior:
An easy concise way of declaring a module so that the base import can be extended
Actual behavior:
error TS2507: Type 'any' is not a constructor function type.
In order to get around the error, I have to do something like this:
declare module 'base'{interfaceConstructor{new(...args: any[]): this;}const_: Constructor;export=_;}
TypeScript Version: 2.1.1
Code
Expected behavior:
An easy concise way of declaring a module so that the base import can be extended
Actual behavior:
error TS2507: Type 'any' is not a constructor function type.
In order to get around the error, I have to do something like this: