-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Description
Description
No typescript definitions
Expected behavior
Correct type checking
Current behavior
No any global variables in TS
Environment
- Platform: Cordova
- Kit: Push
- Kit Version 6.10.0-300
- OS Version: unapplicable
- Android Studio version: unapplicable
- Platform version: unapplicable
- Node Version: unapplicable
- Your Location/Region: unapplicable
Other
As solution for typescheck I copied @hmscore/cordova-plugin-hms-push/ionic-native/dist/index.d.ts with removing all references to ionic and small changes as
declare global {
const HmsPush: HmsPushOriginal;
const HmsLocalNotification: HmsLocalNotificationOriginal;
const HmsPushEvent: HmsPushEventOriginal;
const HmsPushProfile: HmsPushProfileOriginal;
}Metadata
Metadata
Assignees
Labels
No labels