Skip to content

Commit

Permalink
fix: Integration callback in typescript definitions file
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhi591 authored and rohitesh-wingify committed Dec 4, 2024
1 parent cfad078 commit 3e7894a
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.71.0] - 2024-12-04

### Fix
- Fixed issue where integrations callback was missing in the typescript definitions file.

## [1.70.1] - 2024-10-07

### Fix
Expand Down
4 changes: 2 additions & 2 deletions dist/vwo-javascript-sdk.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/vwo-javascript-sdk.min.js

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,17 @@ declare module 'vwo-node-sdk' {
* This key should be passed along with pollingInterval to fetch settigns file at regular intervals.
*/
sdkKey?: string;

/**
* Integration configurations for callback functionality
*/
integrations?: {
/**
* Callback function that receives VWO specific properties
* @param properties Object containing VWO specific information
*/
callback?: (properties: Record<string, any>) => void;
};
}

// For synchronous code
Expand Down

0 comments on commit 3e7894a

Please sign in to comment.