Prerequisites
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.
Prerequisites
Ionic Framework Version
v8.x
Current Behavior
Using this code:
It errors:
Expected Behavior
This code:
Should not error and correctly verify that
componentisMyModalComponentSteps 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.