From 98d1603b69c1dfb9bdcda2f06cb2ca4c30d3f630 Mon Sep 17 00:00:00 2001 From: Vinicius de Lacerda Date: Wed, 19 Jun 2024 17:28:21 +0200 Subject: [PATCH] fix: Export ActivateNotificationPayload --- packages/lib/.changeset/wet-dots-draw.md | 5 +++++ packages/lib/src/integrations/optimizely.ts | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 packages/lib/.changeset/wet-dots-draw.md diff --git a/packages/lib/.changeset/wet-dots-draw.md b/packages/lib/.changeset/wet-dots-draw.md new file mode 100644 index 0000000..d306a23 --- /dev/null +++ b/packages/lib/.changeset/wet-dots-draw.md @@ -0,0 +1,5 @@ +--- +'opticks': patch +--- + +fix: Exports ts type ActivateNotificationPayload diff --git a/packages/lib/src/integrations/optimizely.ts b/packages/lib/src/integrations/optimizely.ts index e7bea7d..17f1e43 100644 --- a/packages/lib/src/integrations/optimizely.ts +++ b/packages/lib/src/integrations/optimizely.ts @@ -151,10 +151,10 @@ export enum ExperimentType { * * It would be best if Opticks abstracts this difference from the client in future versions. */ -interface ActivateNotificationPayload extends ListenerPayload { +export interface ActivateNotificationPayload extends ListenerPayload { type: ExperimentType decisionInfo: { - experimentKey: ToggleIdType + flagKey: ToggleIdType variationKey: VariantType } }