-1
我使用nativescript + tyepscript需要延长的android罐子,但它抛出异常说 “类型‘任何’不是一个构造函数的类型。”nativescript延长罐子类抛出异常
declare var com : any;
export class MyPushTestReceives extends
com.baidu.android.pushservice.PushMessageReceiver.extend {
static constructorCalled: boolean = false;
// //constructor
init() {
MyPushTestReceives.constructorCalled = true;
// necessary when extending TypeScript constructors
return global.__native(this);
}
}