From d406db6b395ea85994e0a31365e3c472e199e1bb Mon Sep 17 00:00:00 2001 From: OneSignal Date: Fri, 27 Feb 2026 16:29:35 +0000 Subject: [PATCH] build: sync with web-shim-codegen v3.0.8 --- index.ts | 6 +++++- package-lock.json | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) 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",