Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No type definitions for generic cordova project #151

Open
Delagen opened this issue Sep 28, 2023 · 0 comments · May be fixed by #159
Open

No type definitions for generic cordova project #151

Delagen opened this issue Sep 28, 2023 · 0 comments · May be fixed by #159

Comments

@Delagen
Copy link

Delagen commented Sep 28, 2023

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;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant