Skip to content

Commit 7aed3e1

Browse files
authored
Merge branch 'main' into eligrey/block-api
2 parents 0d2199d + 450e5cd commit 7aed3e1

File tree

8 files changed

+19
-19
lines changed

8 files changed

+19
-19
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ repos:
44
- repo: https://github.com/pre-commit/mirrors-prettier
55
# Use the sha / tag you want to point at, this needs
66
# to stay in sync with the package.json version
7-
rev: 'v2.3.2'
7+
rev: v3.1.0
88
hooks:
99
- id: prettier
1010
args: [--write, --list-different]
1111
- repo: https://github.com/pre-commit/pre-commit-hooks
12-
rev: v2.5.0
12+
rev: v4.5.0
1313
hooks:
1414
- id: check-merge-conflict
1515
- id: check-symlinks
@@ -31,5 +31,5 @@ repos:
3131
description: 'Run static code linting'
3232
entry: yarn lint --fix
3333
language: node
34-
files: \.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx
34+
files: .*\.(js|jsx|ts|tsx)$
3535
types: [file]

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"author": "Transcend Inc.",
33
"name": "@transcend-io/airgap.js-types",
44
"description": "TypeScript types for airgap.js interoperability with custom consent UIs",
5-
"version": "12.10.0",
5+
"version": "12.11.0",
66
"homepage": "https://github.com/transcend-io/airgap.js-types",
77
"repository": {
88
"type": "git",

src/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ const ReservedMetadata = t.partial({
594594
}),
595595
});
596596

597-
const CoreTrackingConsentDetails = t.intersection([
597+
export const CoreTrackingConsentDetails = t.intersection([
598598
t.type({
599599
/**
600600
* Was tracking consent confirmed by the user?

src/enums/browserLanguage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,4 +249,4 @@ export const BrowserLanguage = makeEnum({
249249

250250
/** Overrides type */
251251
export type BrowserLanguage =
252-
typeof BrowserLanguage[keyof typeof BrowserLanguage];
252+
(typeof BrowserLanguage)[keyof typeof BrowserLanguage];

src/enums/consentExpiry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ export const OnConsentExpiry = makeEnum({
1313
});
1414
/** Override type */
1515
export type OnConsentExpiry =
16-
typeof OnConsentExpiry[keyof typeof OnConsentExpiry];
16+
(typeof OnConsentExpiry)[keyof typeof OnConsentExpiry];

src/enums/experience.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ export const RegionsOperator = makeEnum({
1212
});
1313
/** Override type */
1414
export type RegionsOperator =
15-
typeof RegionsOperator[keyof typeof RegionsOperator];
15+
(typeof RegionsOperator)[keyof typeof RegionsOperator];

src/enums/purpose.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const SpecialTrackingPurpose = makeEnum({
1313

1414
/** Type override */
1515
export type SpecialTrackingPurpose =
16-
typeof SpecialTrackingPurpose[keyof typeof SpecialTrackingPurpose];
16+
(typeof SpecialTrackingPurpose)[keyof typeof SpecialTrackingPurpose];
1717

1818
/**
1919
* Possible values for the default consent that can be given to a tracking purpose
@@ -30,7 +30,7 @@ export const DefaultConsentValue = makeEnum({
3030

3131
/** Type override */
3232
export type DefaultConsentValue =
33-
typeof DefaultConsentValue[keyof typeof DefaultConsentValue];
33+
(typeof DefaultConsentValue)[keyof typeof DefaultConsentValue];
3434

3535
/**
3636
* Purposes that can be configured
@@ -48,7 +48,7 @@ export const ConfigurablePurpose = makeEnum({
4848

4949
/** Type override */
5050
export type ConfigurablePurpose =
51-
typeof ConfigurablePurpose[keyof typeof ConfigurablePurpose];
51+
(typeof ConfigurablePurpose)[keyof typeof ConfigurablePurpose];
5252

5353
/**
5454
* Purposes that can be configured
@@ -61,7 +61,7 @@ export const KnownDefaultPurpose = makeEnum({
6161

6262
/** Type override */
6363
export type KnownDefaultPurpose =
64-
typeof KnownDefaultPurpose[keyof typeof KnownDefaultPurpose];
64+
(typeof KnownDefaultPurpose)[keyof typeof KnownDefaultPurpose];
6565

6666
/**
6767
* Purposes used by the purpose map
@@ -72,4 +72,4 @@ export const Purpose = makeEnum({
7272
});
7373

7474
/** Type override */
75-
export type Purpose = typeof Purpose[keyof typeof Purpose];
75+
export type Purpose = (typeof Purpose)[keyof typeof Purpose];

src/enums/viewState.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export const InitialTranscendViewState = makeEnum({
5656
* Type override
5757
*/
5858
export type InitialTranscendViewState =
59-
typeof InitialTranscendViewState[keyof typeof InitialTranscendViewState];
59+
(typeof InitialTranscendViewState)[keyof typeof InitialTranscendViewState];
6060

6161
/**
6262
* Consent Manager view states that can be used at launch
@@ -72,7 +72,7 @@ export const InitialViewState = makeEnum({
7272
* Type override
7373
*/
7474
export type InitialViewState =
75-
typeof InitialViewState[keyof typeof InitialViewState];
75+
(typeof InitialViewState)[keyof typeof InitialViewState];
7676

7777
/**
7878
* View states that are displayed in response to a user request (e.g. transcend.doNotSell() or )
@@ -88,7 +88,7 @@ export const ResponseViewState = makeEnum({
8888
* Type override
8989
*/
9090
export type ResponseViewState =
91-
typeof ResponseViewState[keyof typeof ResponseViewState];
91+
(typeof ResponseViewState)[keyof typeof ResponseViewState];
9292

9393
/**
9494
* Consent Manager view states that can be navigated to after initial view state
@@ -101,7 +101,7 @@ export const DeepViewState = makeEnum({
101101
/**
102102
* Type override
103103
*/
104-
export type DeepViewState = typeof DeepViewState[keyof typeof DeepViewState];
104+
export type DeepViewState = (typeof DeepViewState)[keyof typeof DeepViewState];
105105

106106
/**
107107
* Consent Manager view states after it's been dismissed
@@ -117,7 +117,7 @@ export const DismissedViewState = makeEnum({
117117
* Type override
118118
*/
119119
export type DismissedViewState =
120-
typeof DismissedViewState[keyof typeof DismissedViewState];
120+
(typeof DismissedViewState)[keyof typeof DismissedViewState];
121121

122122
/**
123123
* All possible view states of the Consent Manager
@@ -132,4 +132,4 @@ export const ViewState = makeEnum({
132132
/**
133133
* Type override
134134
*/
135-
export type ViewState = typeof ViewState[keyof typeof ViewState];
135+
export type ViewState = (typeof ViewState)[keyof typeof ViewState];

0 commit comments

Comments
 (0)