File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 11``` ts
22import { Component } from ' @angular/core' ;
33import { IonAlert , IonButton } from ' @ionic/angular/standalone' ;
4+ import type { OverlayEventDetail } from ' @ionic/core' ;
45
56@Component ({
67 selector: ' app-example' ,
@@ -25,7 +26,8 @@ export class ExampleComponent {
2526 },
2627 ];
2728
28- setResult(ev ) {
29+ setResult(event : Event ) {
30+ const ev = event as CustomEvent <OverlayEventDetail <string >>;
2931 console .log (` Dismissed with role: ${ev .detail .role } ` );
3032 }
3133}
Original file line number Diff line number Diff line change 11``` ts
22import { Component } from ' @angular/core' ;
33import { IonAlert , IonButton } from ' @ionic/angular/standalone' ;
4+ import type { OverlayEventDetail } from ' @ionic/core' ;
45
56@Component ({
67 selector: ' app-example' ,
@@ -25,7 +26,8 @@ export class ExampleComponent {
2526 },
2627 ];
2728
28- setResult(ev ) {
29+ setResult(event : Event ) {
30+ const ev = event as CustomEvent <OverlayEventDetail <string >>;
2931 console .log (` Dismissed with role: ${ev .detail .role } ` );
3032 }
3133}
You can’t perform that action at this time.
0 commit comments