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;