Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
garronej committed Jun 27, 2023
1 parent b808c0c commit 3e70140
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/consentManagement/createConsentManagement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import { isBrowser } from "../tools/isBrowser";

export const localStorageKey = "@codegouvfr/react-dsfr consent management finalityConsent";

export type EulerianParams = {};

export function createConsentManagement<
FinalityDescription extends Record<
string,
Expand All @@ -21,6 +23,7 @@ export function createConsentManagement<
consentCallback?: ConsentCallback<ExtractFinalityFromFinalityDescription<FinalityDescription>>;
/** Optional: If you have a dedicated page that provides comprehensive information about your website's GDPR policies. */
personalDataPolicyLinkProps?: RegisteredLinkProps;
analyticsWithEulerian: EulerianParams | undefined;
}) {
type Finality = ExtractFinalityFromFinalityDescription<FinalityDescription>;

Expand Down
6 changes: 3 additions & 3 deletions test/runtime/lib/gdpr.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import {
updateFinalityConsent,
readFinalityConsent,
finalityConsentToChanges
} from "../../../src/gdpr/processConsentChanges";
import { getFinalitiesFromFinalityDescription } from "../../../src/gdpr/createGdprApi";
import type { FinalityConsent } from "../../../src/gdpr/types";
} from "../../../src/consentManagement/processConsentChanges";
import { getFinalitiesFromFinalityDescription } from "../../../src/consentManagement/createConsentManagement";
import type { FinalityConsent } from "../../../src/consentManagement/types";

describe("Testing gdpr utils", () => {
it("createFullDenyFinalityConsent", () => {
Expand Down

0 comments on commit 3e70140

Please sign in to comment.