Skip to content

Commit

Permalink
Fix: Fix imports not being properly recognized by IDEs
Browse files Browse the repository at this point in the history
  • Loading branch information
OndraM committed Jun 13, 2023
1 parent 7eccc48 commit 18bfb83
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions dist/types/CookieConsentManager.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { CookieConsentCategory, DisplayMode } from '../constants';
import { CookieConsentCategory, DisplayMode, SecondaryButtonMode } from '../constants';
import { VanillaCookieConsent } from './vanilla-cookieconsent';
import { SecondaryButtonMode } from '../constants/SecondaryButtonMode';
export type Values<T> = T[keyof T];
export type CookieConsentCategoryValues = Values<typeof CookieConsentCategory>;
export type CategoriesChangeset = {
Expand Down
1 change: 1 addition & 0 deletions dist/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from './Messages';
export * from './CookieConsentManager';
export * from './vanilla-cookieconsent';
4 changes: 2 additions & 2 deletions src/global.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { CookieConsent } from './types';
import { CookieConsentCategoryValues, VanillaCookieConsent } from './types';
import LmcCookieConsentManager from './LmcCookieConsentManager';

declare global {
interface Window {
dataLayer: any[];
initCookieConsent: () => CookieConsent;
initCookieConsent: () => VanillaCookieConsent.CookieConsent<CookieConsentCategoryValues>;
initLmcCookieConsentManager: typeof LmcCookieConsentManager;
}
}
1 change: 1 addition & 0 deletions src/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from './Messages';
export * from './CookieConsentManager';
export * from './vanilla-cookieconsent';

0 comments on commit 18bfb83

Please sign in to comment.