URL
https://ionicframework.com/docs/developing/hardware-back-button
Issue Description
When trying to subscribe to 'ionBackButton' the way it is written on the docs, the compiler complains about the property detail with the message: "Property 'detail' does not exist on type 'Event'.ts(2339)".
The current solution is to cast the event parameter to any. Other solutions have been tried, like casting to BackButtonEvent from @ionic/react or @ionic/core.
Image below is how I found the current solution on the Ionic discord:

npm ls:
URL
https://ionicframework.com/docs/developing/hardware-back-button
Issue Description
When trying to subscribe to
'ionBackButton'the way it is written on the docs, the compiler complains about the propertydetailwith the message: "Property 'detail' does not exist on type 'Event'.ts(2339)".The current solution is to cast the
eventparameter toany. Other solutions have been tried, like casting toBackButtonEventfrom@ionic/reactor@ionic/core.Image below is how I found the current solution on the Ionic discord:

npm ls: