diff --git a/.changeset/social-moons-rush.md b/.changeset/social-moons-rush.md new file mode 100644 index 000000000..89225e5e5 --- /dev/null +++ b/.changeset/social-moons-rush.md @@ -0,0 +1,5 @@ +--- +"@scaleway/use-analytics": patch +--- + +Add missing type to consent context diff --git a/packages/use-analytics/src/cookies-consent/CookieConsentProvider.tsx b/packages/use-analytics/src/cookies-consent/CookieConsentProvider.tsx index 874c30ba4..ba056e5af 100644 --- a/packages/use-analytics/src/cookies-consent/CookieConsentProvider.tsx +++ b/packages/use-analytics/src/cookies-consent/CookieConsentProvider.tsx @@ -36,6 +36,8 @@ type Context = { isDestinationsLoaded: boolean categories: typeof CATEGORIES categoriesConsent: Partial + allowedConsents: (keyof Consent)[] + deniedConsents: (keyof Consent)[] saveConsent: (categoriesConsent: Partial) => void }