Skip to content

Commit 0d2199d

Browse files
committed
improve types
1 parent 35accef commit 0d2199d

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/core.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -949,13 +949,15 @@ export interface InstantiatedPendingCookieMutationProps {
949949
expires?: number;
950950
/** Cookie change event timestamp (Date.now() format) */
951951
timestamp: string;
952-
/** Whether or not cookie is currently allowed */
953-
allowed: boolean;
952+
/** Whether or not cookie is currently allowed. null = passthrough */
953+
allowed?: boolean | null;
954+
/** Whether or not cookie is currently disallowed & blocked from entering the quarantine */
955+
blocked?: boolean;
954956
/** Bypass our consent logic and force-allow cookie */
955957
allow(): void;
956958
/** Bypass our consent logic and force-deny cookie */
957959
deny(): void;
958-
/** Bypass our consent logic to force-deny cookie and also block it from entering the replay quarantine */
960+
/** Bypass our consent logic to force-deny cookie and also block it from entering the quarantine */
959961
block(): void;
960962
/** Resolved tracking purposes associated with this pending mutation */
961963
purposes: Set<TrackingPurpose>;

0 commit comments

Comments
 (0)