trackkit / consent/types / ResolvedConsentOptions
Interface: ResolvedConsentOptions
Defined in: consent/types.ts:126
Internal
Fully resolved consent options with defaults applied.
All fields except policyVersion are required internally.
See
ConsentOptions
Extends
Required<Omit<ConsentOptions,"policyVersion">>
Properties
initialStatus
initialStatus:
ConsentStatus
Defined in: consent/types.ts:73
Initial consent status when no stored state exists.
If omitted, Trackkit will derive an appropriate default based on ConsentOptions.requireExplicit and other settings.
Inherited from
requireExplicit
requireExplicit:
boolean
Defined in: consent/types.ts:82
If true, the consent manager starts as 'pending' and requires an explicit grant call.
If false, consent may be auto-granted on first track (implicit consent) depending on your policy.
Inherited from
ConsentOptions.requireExplicit
allowEssentialOnDenied
allowEssentialOnDenied:
boolean
Defined in: consent/types.ts:91
When true, essential events may still be allowed when consent is explicitly denied.
This typically covers things like security logging and critical operational telemetry.
Inherited from
ConsentOptions.allowEssentialOnDenied
disablePersistence
disablePersistence:
boolean
Defined in: consent/types.ts:107
Disable all persistence.
When true, consent state is never written to storage and always starts from ConsentOptions.initialStatus on each page load.
Inherited from
ConsentOptions.disablePersistence
storageKey
storageKey:
string
Defined in: consent/types.ts:115
Custom storage key to use when persisting consent state.
Useful when running multiple independent consent managers or when migrating from a legacy key.
Inherited from
policyVersion?
optionalpolicyVersion:string
Defined in: consent/types.ts:128