Skip to content

Commit cd4673b

Browse files
Sergey VohmyaninDelagen
authored andcommitted
fix(typings): add typings for use in cordova project without ionic
Add @hmscore/cordova-plugin-hms-push to tsconfig.json/types or triple slash comment in source /// <reference types="@hmscore/cordova-plugin-hms-push" />
1 parent 758a6e7 commit cd4673b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import * as HmsPushOriginal from './HmsPush';
2+
import * as HmsLocalNotificationOriginal from './HmsLocalNotification';
3+
import * as HmsPushEventOriginal from './HmsPushEvent';
4+
import * as HmsPushProfileOriginal from './HmsPushProfile';
5+
6+
declare global {
7+
const HmsPush: typeof HmsPushOriginal;
8+
const HmsLocalNotification: typeof HmsLocalNotificationOriginal;
9+
const HmsPushEvent: typeof HmsPushEventOriginal;
10+
const HmsPushProfile: typeof HmsPushProfileOriginal;
11+
}

0 commit comments

Comments
 (0)