diff --git a/src/types/CookieConsentCategory.ts b/src/types/CookieConsentCategory.ts index fbd5d043..e332eaca 100644 --- a/src/types/CookieConsentCategory.ts +++ b/src/types/CookieConsentCategory.ts @@ -1,4 +1,4 @@ -export enum CookieConsentCategory { +export const enum CookieConsentCategory { NECESSARY = 'necessary', AD = 'ad', ANALYTICS = 'analytics', diff --git a/src/types/CookieConsentManager.ts b/src/types/CookieConsentManager.ts index 2c2921d4..b995ec05 100644 --- a/src/types/CookieConsentManager.ts +++ b/src/types/CookieConsentManager.ts @@ -14,7 +14,7 @@ export type OnChangeCallback = ( categories: CategoriesChangeset, ) => void; -export enum DisplayMode { +export const enum DisplayMode { FORCE = 'force', SOFT = 'soft', }