You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
v4.x
v5.x
v6.x
Current Behavior
After upgrading to Ionic 6. I noticed typescript errors when looking at my existing use of modalController in my Vue components related to trying to use modalController.onDidDismiss<T>.
I then noticed that it's typed as any in controllers.d.ts.
It looks like when introducing custom elements, the createController method was introduced, which doesn't carry forward the types of the individual controller arguments to the return type.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Prerequisites
Ionic Framework Version
Current Behavior
After upgrading to Ionic 6. I noticed typescript errors when looking at my existing use of
modalController
in my Vue components related to trying to usemodalController.onDidDismiss<T>
.I then noticed that it's typed as
any
incontrollers.d.ts
.Expected Behavior
The controllers are strongly typed
Steps to Reproduce
any
Code Reproduction URL
No response
Ionic Info
Ionic:
Ionic CLI : 5.4.16 (C:\Users\rayme\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : @ionic/vue 6.0.0
Capacitor:
Capacitor CLI : 3.2.4
@capacitor/core : 3.2.4
Utility:
cordova-res : not installed
native-run : 1.5.0
System:
NodeJS : v16.13.1 (C:\Program Files\nodejs\node.exe)
npm : 8.3.0
OS : Windows 10
Additional Information
No response
The text was updated successfully, but these errors were encountered: