Skip to content

Commit f6efd44

Browse files
authored
fix(analytics): type providers (#2776)
1 parent 3c71586 commit f6efd44

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.changeset/social-moons-rush.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@scaleway/use-analytics": patch
3+
---
4+
5+
Add missing type to consent context

packages/use-analytics/src/cookies-consent/CookieConsentProvider.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ type Context = {
3636
isDestinationsLoaded: boolean
3737
categories: typeof CATEGORIES
3838
categoriesConsent: Partial<Consent>
39+
allowedConsents: (keyof Consent)[]
40+
deniedConsents: (keyof Consent)[]
3941
saveConsent: (categoriesConsent: Partial<Consent>) => void
4042
}
4143

0 commit comments

Comments
 (0)