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

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -