From b9b25f0f86f4ef9f73dffdb69aeafda9ce62b76c Mon Sep 17 00:00:00 2001 From: Franco Zalamena Date: Tue, 7 Apr 2026 16:00:33 +0100 Subject: [PATCH] Make InAppMessage.customPayload optional in type definition The customPayload property can be undefined when no RAW JSON is configured in the Iterable dashboard. Update the type to accurately reflect runtime behavior. Fixes #538 Co-Authored-By: Claude Opus 4.6 --- src/inapp/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inapp/types.ts b/src/inapp/types.ts index 56e52535..faa9b146 100644 --- a/src/inapp/types.ts +++ b/src/inapp/types.ts @@ -50,7 +50,7 @@ export interface InAppMessage { }; webInAppDisplaySettings: WebInAppDisplaySettings; }; - customPayload: Record; + customPayload?: Record; trigger: { type: string }; saveToInbox: boolean; inboxMetadata: {