-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);
}
}