Skip to content

Commit

Permalink
trackingType: t.string (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
MadDataScience authored Nov 6, 2023
1 parent f1cb403 commit c6880cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"author": "Transcend Inc.",
"name": "@transcend-io/airgap.js-types",
"description": "TypeScript types for airgap.js interoperability with custom consent UIs",
"version": "10.7.1",
"version": "10.7.2",
"homepage": "https://github.com/transcend-io/airgap.js-types",
"repository": {
"type": "git",
Expand Down
8 changes: 2 additions & 6 deletions src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ import * as t from 'io-ts';
import { FixedLengthArray, valuesOf } from '@transcend-io/type-utils';

// local
import {
ConfigurablePurpose,
SpecialTrackingPurpose,
ViewState,
} from './enums';
import { SpecialTrackingPurpose, ViewState } from './enums';

/* eslint-disable max-lines */

Expand Down Expand Up @@ -314,7 +310,7 @@ export const TrackingPurposeDetails = t.intersection([
}),
t.partial({
/** Tracking type */
trackingType: valuesOf(ConfigurablePurpose),
trackingType: t.string,
/** Respected opt-out privacy signals */
optOutSignals: t.array(UserPrivacySignal),
}),
Expand Down

0 comments on commit c6880cb

Please sign in to comment.