From 1ae9f7c3278ef175918fa275da4b221ddd81d640 Mon Sep 17 00:00:00 2001 From: Egor Zudin Date: Wed, 16 Jul 2025 15:07:07 +0500 Subject: [PATCH] Fix init options https://documentation.onesignal.com/docs/web-sdk-reference#promptoptions-parameters --- index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.ts b/index.ts index b6a37f7d..2776fa91 100644 --- a/index.ts +++ b/index.ts @@ -270,7 +270,7 @@ export interface IInitObject { * @example * categories: [{ tag: 'local_news', label: 'Local News' }] // The user will be tagged with local_news but will see "Local News" in the prompt. */ - categories: { + categories?: { /** Should identify the action. */ tag: string; @@ -299,9 +299,9 @@ export interface IInitObject { /** Triggers the opt-in. Up to 15 characters. */ acceptButton?: string; - + /** Cancels opt-in. Up to 15 characters. */ - cancelMessage?: string; + cancelButton?:string; /** The message of the confirmation prompt displayed after the email and/or phone number is provided. Up to 90 characters. */ confirmMessage?: string;