Skip to content

Commit ffe940a

Browse files
Add SdkUpdateMetadataKeys type
1 parent c60ab9e commit ffe940a

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@splitsoftware/splitio-commons",
3-
"version": "2.10.2-rc.1",
3+
"version": "2.10.2-rc.3",
44
"description": "Split JavaScript SDK common components",
55
"main": "cjs/index.js",
66
"module": "esm/index.js",

types/splitio.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,15 @@ declare namespace SplitIO {
506506
names: string[]
507507
}
508508

509+
/**
510+
* Metadata keys for SDK update events.
511+
* Use the string literals directly: 'FLAGS_UPDATE' or 'SEGMENTS_UPDATE'
512+
*/
513+
type SdkUpdateMetadataKeys = {
514+
FLAGS_UPDATE: 'FLAGS_UPDATE';
515+
SEGMENTS_UPDATE: 'SEGMENTS_UPDATE';
516+
};
517+
509518
/**
510519
* Metadata for the ready events emitted when the SDK is ready to evaluate feature flags.
511520
*/

0 commit comments

Comments
 (0)