Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
linh-transcend committed Dec 17, 2024
1 parent 60e7022 commit 5d2e3ca
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/consentManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const DataFlowScope = makeEnum({
});

/** Type override */
export type DataFlowScope = typeof DataFlowScope[keyof typeof DataFlowScope];
export type DataFlowScope = (typeof DataFlowScope)[keyof typeof DataFlowScope];

export const ConsentBundleType = makeEnum({
/** Bundle hosted at /cm path */
Expand All @@ -45,7 +45,7 @@ export const ConsentBundleType = makeEnum({

/** Override type */
export type ConsentBundleType =
typeof ConsentBundleType[keyof typeof ConsentBundleType];
(typeof ConsentBundleType)[keyof typeof ConsentBundleType];

export const UnknownRequestPolicy = makeEnum({
Allow: 'ALLOW',
Expand All @@ -55,7 +55,7 @@ export const UnknownRequestPolicy = makeEnum({

/** Override type */
export type UnknownRequestPolicy =
typeof UnknownRequestPolicy[keyof typeof UnknownRequestPolicy];
(typeof UnknownRequestPolicy)[keyof typeof UnknownRequestPolicy];

export const TelemetryPartitionStrategy = makeEnum({
/** Partition telemetry data by the origin (default) */
Expand All @@ -68,7 +68,7 @@ export const TelemetryPartitionStrategy = makeEnum({

/** Override type */
export type TelemetryPartitionStrategy =
typeof TelemetryPartitionStrategy[keyof typeof TelemetryPartitionStrategy];
(typeof TelemetryPartitionStrategy)[keyof typeof TelemetryPartitionStrategy];

/**
* The possible options for configuring the Consent resolution precedence
Expand All @@ -87,7 +87,7 @@ export const ConsentPrecedenceOption = makeEnum({

/** Override type */
export type ConsentPrecedenceOption =
typeof ConsentPrecedenceOption[keyof typeof ConsentPrecedenceOption];
(typeof ConsentPrecedenceOption)[keyof typeof ConsentPrecedenceOption];

/**
* The possible options for configuring the CSP
Expand All @@ -107,7 +107,7 @@ export const CspOption = makeEnum({
});

/** Override type */
export type CspOption = typeof CspOption[keyof typeof CspOption];
export type CspOption = (typeof CspOption)[keyof typeof CspOption];

/**
* Options for configuring the US Privacy API
Expand All @@ -121,7 +121,7 @@ export const UspapiOption = makeEnum({
});

/** Override type */
export type UspapiOption = typeof UspapiOption[keyof typeof UspapiOption];
export type UspapiOption = (typeof UspapiOption)[keyof typeof UspapiOption];

/**
* Options for configuring the US Privacy API
Expand All @@ -138,7 +138,7 @@ export const SignedIabAgreementOption = makeEnum({

/** Override type */
export type SignedIabAgreementOption =
typeof SignedIabAgreementOption[keyof typeof SignedIabAgreementOption];
(typeof SignedIabAgreementOption)[keyof typeof SignedIabAgreementOption];

/**
* Describes whether listed countries/country subdivisions are included in an experience
Expand All @@ -152,7 +152,7 @@ export const RegionsOperator = makeEnum({

/** Override type */
export type RegionsOperator =
typeof RegionsOperator[keyof typeof RegionsOperator];
(typeof RegionsOperator)[keyof typeof RegionsOperator];

/**
* Options for configuring Backend Sync
Expand All @@ -167,15 +167,15 @@ export const BackendSyncOption = makeEnum({

/** Override type */
export type BackendSyncOption =
typeof BackendSyncOption[keyof typeof BackendSyncOption];
(typeof BackendSyncOption)[keyof typeof BackendSyncOption];

/**
* Whether or not to run cross-domain sync
* Whether or not to run local on-device same-site cross-domain sync
*
* default: 'on'
*/
export const LocalSyncOption = makeEnum({
/** use private consent sync only */
/** use private sync only */
Private: 'private',
/** allow network-observable sync when private sync is unavailable */
AllowNetworkObservable: 'allow-network-observable',
Expand All @@ -187,4 +187,4 @@ export const LocalSyncOption = makeEnum({

/** Type override */
export type LocalSyncOption =
typeof LocalSyncOption[keyof typeof LocalSyncOption];
(typeof LocalSyncOption)[keyof typeof LocalSyncOption];

0 comments on commit 5d2e3ca

Please sign in to comment.