Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
v8.x
Current Behavior
Using this code:
import { ModalOptions } from '@ionic/angular'; const modal = await this.modalController.create({ component: MyModalComponent, } satisfies ModalOptions<typeof MyModalComponent>);
It errors:
[ERROR] TS2315: Type 'ModalOptions' is not generic.
Expected Behavior
This code:
import { ModalOptions } from '@ionic/angular'; const modal = await this.modalController.create({ component: MyModalComponent, } satisfies ModalOptions<typeof MyModalComponent>);
Should not error and correctly verify that component is MyModalComponent
Steps to Reproduce
N/A
Code Reproduction URL
N/A
Ionic Info
N/A
Additional Information
Bug introduced in #30899, specifically in commit 641f319 .
Ionic 8.8.0 was the first version with this bug.