Skip to content

Commit

Permalink
Bug: Incomplete data type definitions (#373)
Browse files Browse the repository at this point in the history
* array of string, number,bool,obj support added in ts declaration

* integration option payload modified

* bump the version from 1.2.6 to 1.2.7

Co-authored-by: Moumita Mandal <[email protected]>
  • Loading branch information
MoumitaM and Moumita Mandal authored Nov 12, 2021
1 parent 9cea49b commit 6cb4157
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions dist/rudder-sdk-js/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ declare module "rudder-sdk-js" {
*/
interface integrationOptions {
// Defaults to true
// If set to false, specific integration should be set to true to send the event
All?: boolean;
// Destination name: Enable/Disable
[index: string]: boolean | undefined;
// Destination name: true/false/integration specific information
[index: string]: boolean | undefined | apiObject;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion dist/rudder-sdk-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
"url": "https://github.com/rudderlabs/rudder-sdk-js/issues"
},
"homepage": "https://github.com/rudderlabs/rudder-sdk-js/blob/master/README.md"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,4 @@
"rollup-plugin-visualizer": "^4.1.1",
"size-limit": "^4.4.1"
}
}
}

0 comments on commit 6cb4157

Please sign in to comment.