From cd4673be3fcdde3d0179faab14874521f0755c08 Mon Sep 17 00:00:00 2001 From: Sergey Vohmyanin Date: Thu, 19 Oct 2023 16:21:31 +0300 Subject: [PATCH] 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 /// --- cordova-plugin-hms-push/types/index.d.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 cordova-plugin-hms-push/types/index.d.ts diff --git a/cordova-plugin-hms-push/types/index.d.ts b/cordova-plugin-hms-push/types/index.d.ts new file mode 100644 index 00000000..53a035e6 --- /dev/null +++ b/cordova-plugin-hms-push/types/index.d.ts @@ -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; +}