index.d.ts bugfix
Some checks failed
CI / test (20) (push) Has been cancelled
CI / test (22) (push) Has been cancelled

This commit is contained in:
Pdn Technology 2026-06-20 09:20:23 +03:00
parent 0370178cd7
commit 2fa105ac1a
3 changed files with 8 additions and 2 deletions

View File

@ -2,6 +2,12 @@
All notable changes to this project are documented in this file. All notable changes to this project are documented in this file.
## [1.1.3] - 2026-06-20
### Fixed
- TypeScript declaration for `defaultConfig` (`export const`, not `export function`)
## [1.1.0] - 2026-06-20 ## [1.1.0] - 2026-06-20
### Added ### Added

View File

@ -1,6 +1,6 @@
{ {
"name": "@pdntechnology/cookie-consent", "name": "@pdntechnology/cookie-consent",
"version": "1.1.2", "version": "1.1.3",
"description": "Lightweight Google Consent Mode v2 CMP for React and Next.js", "description": "Lightweight Google Consent Mode v2 CMP for React and Next.js",
"type": "module", "type": "module",
"main": "./src/index.js", "main": "./src/index.js",

2
src/index.d.ts vendored
View File

@ -44,7 +44,7 @@ export const GOOGLE_CONSENT_SIGNALS: readonly string[];
export function configureConsent(config?: ConsentConfig): ConsentConfig; export function configureConsent(config?: ConsentConfig): ConsentConfig;
export function getConsentConfig(): ConsentConfig; export function getConsentConfig(): ConsentConfig;
export function defaultConfig: ConsentConfig; export const defaultConfig: ConsentConfig;
export function getConsent(): UserConsent | null; export function getConsent(): UserConsent | null;
export function setConsent(preferences: Partial<UserConsent>): PersistResult; export function setConsent(preferences: Partial<UserConsent>): PersistResult;