From b79c2482484e3d105f009e2ed3711a9366e7b2dc Mon Sep 17 00:00:00 2001 From: Eli Grey <~@eligrey.com> Date: Wed, 26 Jun 2024 12:17:39 -0700 Subject: [PATCH] Fix `transcend.setAuth(key)` API docs (#136) --- package.json | 2 +- src/ui.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 73a4291..f307b34 100644 --- a/package.json +++ b/package.json @@ -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.14.1", + "version": "10.15.0", "homepage": "https://github.com/transcend-io/airgap.js-types", "repository": { "type": "git", diff --git a/src/ui.ts b/src/ui.ts index f04c950..067ac6a 100644 --- a/src/ui.ts +++ b/src/ui.ts @@ -13,7 +13,7 @@ import { PrivacyRegimeEnum, DismissedViewState, } from './enums'; -import { AirgapAuth } from './core'; +import { AirgapAuth, AirgapAuthMap } from './core'; import { NonTcfVendor } from './iab'; /** Transcend Smart Quarantine API (window.transcend) */ @@ -39,7 +39,7 @@ export type ConsentManagerAPI = Readonly<{ /** Expose an option to grab the current view state */ getViewState: () => ViewState; /** Set consent change authorization key */ - setAuth: (auth: AirgapAuth) => void; + setAuth?: (key: AirgapAuthMap['key']) => void; /** Change the current privacy policy URL */ setPrivacyPolicy: (privacyPolicyLink: string) => void; /** Change the current secondary policy URL */