I am currently working on an Ionic 2 application and there is a specific instance where I need to call the method AccountKit.login(type, params, callbackFn). I want to create an Observable return as per the guidelines mentioned in the documentation. Here's what I have tried:
let obs = Observable.bindCallback(AccountKit.login); // this line runs without any issues!
return obs(type, params) // <---- error: signature mismatch
.map(response => this.loginCallback(response));
It appears that there may be a typescript related problem here and so far I haven't been able to find a practical solution for it.