我得到这个编译错误:
“基础”类型的值上不存在属性“原型”
在下面的类中,我怎样才能让 typescript 将原型对象识别为构造函数函数中的原生对象类型?
interface IBase {
extend: any;
prototype : any;
}
declare var Base : IBase;
class Base implements IBase {
constructor() {}
public extend( mixins : any ) : void {
_.extend( this.prototype, mixins );
}
}