Skip to content

Commit

Permalink
fix(typings): add typings for use in cordova project without ionic
Browse files Browse the repository at this point in the history
Add @hmscore/cordova-plugin-hms-push to tsconfig.json/types
or triple slash comment in source
/// <reference types="@hmscore/cordova-plugin-hms-push" />
  • Loading branch information
Sergey Vohmyanin committed Oct 19, 2023
1 parent 758a6e7 commit bd563c4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions cordova-plugin-hms-push/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import * as HmsPushOriginal from './HmsPush';
import * as HmsLocalNotificationOriginal from './HmsLocalNotification';
import * as HmsPushEventOriginal from './HmsPushEvent';
import * as HmsPushProfileOriginal from './HmsPushProfile';

declare global {
const HmsPush: typeof HmsPushOriginal;
const HmsLocalNotification: typeof HmsLocalNotificationOriginal;
const HmsPushEvent: typeof HmsPushEventOriginal;
const HmsPushProfile: typeof HmsPushProfileOriginal;
}

0 comments on commit bd563c4

Please sign in to comment.