Skip to content

Commit 3e7894a

Browse files
Abhi591rohitesh-wingify
authored andcommitted
fix: Integration callback in typescript definitions file
1 parent cfad078 commit 3e7894a

File tree

4 files changed

+20
-4
lines changed

4 files changed

+20
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.71.0] - 2024-12-04
9+
10+
### Fix
11+
- Fixed issue where integrations callback was missing in the typescript definitions file.
12+
813
## [1.70.1] - 2024-10-07
914

1015
### Fix

dist/vwo-javascript-sdk.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vwo-javascript-sdk.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/index.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,17 @@ declare module 'vwo-node-sdk' {
380380
* This key should be passed along with pollingInterval to fetch settigns file at regular intervals.
381381
*/
382382
sdkKey?: string;
383+
384+
/**
385+
* Integration configurations for callback functionality
386+
*/
387+
integrations?: {
388+
/**
389+
* Callback function that receives VWO specific properties
390+
* @param properties Object containing VWO specific information
391+
*/
392+
callback?: (properties: Record<string, any>) => void;
393+
};
383394
}
384395

385396
// For synchronous code

0 commit comments

Comments
 (0)