diff --git a/index.ts b/index.ts index ed5d141c..9bc9487e 100644 --- a/index.ts +++ b/index.ts @@ -217,6 +217,10 @@ export interface IOSNotificationActionButton { readonly launchURL?: string; } +export interface IDisplayableOSNotification extends IOSNotification { + display(): void; +} + export interface NotificationClickResult { readonly actionId?: string; readonly url?: string; @@ -231,7 +235,7 @@ export type NotificationEventTypeMap = { }; export interface NotificationForegroundWillDisplayEvent { - readonly notification: IOSNotification; + readonly notification: IDisplayableOSNotification; preventDefault(): void; } diff --git a/package-lock.json b/package-lock.json index b8ecacfb..e93c4fdd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "react-onesignal", - "version": "3.4.6", + "version": "3.5.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "react-onesignal", - "version": "3.4.6", + "version": "3.5.0", "license": "MIT", "devDependencies": { "@typescript-eslint/eslint-plugin": "^8.28.0",