index.d.ts bugfix
This commit is contained in:
parent
0370178cd7
commit
2fa105ac1a
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
2
src/index.d.ts
vendored
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user