Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,9 @@ export type UserNamespaceProperties = {

export interface IInitObject {
appId: string;
subdomainName?: string;
requiresUserPrivacyConsent?: boolean;
safari_web_id?: string;
subdomainName?: string;
promptOptions?: {
slidedown: {
prompts: {
Expand All @@ -270,7 +271,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;

Expand Down Expand Up @@ -301,7 +302,7 @@ export interface IInitObject {
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;
Expand Down Expand Up @@ -450,15 +451,13 @@ export interface IInitObject {
};
autoResubscribe?: boolean;
autoRegister?: boolean;
notificationClickHandlerMatch?: string;
notificationClickHandlerAction?: string;
notificationClickHandlerMatch?: 'exact' | 'origin';
notificationClickHandlerAction?: 'navigate' | 'focus';
path?: string;
serviceWorkerParam?: { scope: string };
serviceWorkerPath?: string;
serviceWorkerOverrideForTypical?: boolean;
serviceWorkerUpdaterPath?: string;
allowLocalhostAsSecureOrigin?: boolean;
[key: string]: any;
[key: string]: unknown;
}

export interface IOneSignalOneSignal {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.