Closed SpongeBed81 closed 6 months ago
thanks for the PR, but the recommended way is adding addListener definitions in the definitions.ts file for every listener available, so the users can know the event name and what the callback returns instead of using the generic addListener that users just know that the event name is a string and the callback is a function and can make mistakes when typing the event name.
Fixes addListener and any other types inside Plugin interface from "@capacitor/core" being not found inside definitions file.
Related to this issue