Skip to content

Commit b9b25f0

Browse files
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 <noreply@anthropic.com>
1 parent 190a168 commit b9b25f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/inapp/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export interface InAppMessage {
5050
};
5151
webInAppDisplaySettings: WebInAppDisplaySettings;
5252
};
53-
customPayload: Record<string, any>;
53+
customPayload?: Record<string, any>;
5454
trigger: { type: string };
5555
saveToInbox: boolean;
5656
inboxMetadata: {

0 commit comments

Comments
 (0)