Skip to content

No type definitions for generic cordova project #151

@Delagen

Description

@Delagen

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions