Property 'onDidDismiss' does not exist on type Modal

Hi there,

I’m wondering how can I get rid of this typescript error message? Modal extends ViewController, does this mean typescript couldn’t find the inherited property?

Property 'onDidDismiss' does not exist on type Modal


My system information:

Cordova CLI: 6.0.0
Ionic Framework Version: 2.0.0-beta.11
Ionic CLI Version: 2.0.0-beta.25
Ionic App Lib Version: 2.0.0-beta.15
ios-deploy version: 1.8.5
ios-sim version: 5.0.6
OS: Mac OS X El Capitan
Node Version: v4.3.0
Xcode version: Xcode 7.3.1 Build version 7D1014

I might have just answered my own question:

import {ViewController} from 'ionic-angular'
(<ViewController>accountModal).onDidDismiss(data => {


Hope this helps others.