android - nativescript extend jar class throw exception -


i use nativescript + tyepscript need extend android jar throw exception “type 'any' not constructor function type.”

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


Comments

Popular posts from this blog

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -