Skip to content

Commit 98c8640

Browse files
author
Emmanuel Zamora
committed
Add bySet SplitFilterType
1 parent b964fef commit 98c8640

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

ts-tests/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ userConsent = AsyncSDK.UserConsent.Status.UNKNOWN;
518518
/**** Tests for fully crowded settings interfaces ****/
519519

520520
// Split filters
521-
let splitFilters: SplitIO.SplitFilter[] = [{ type: 'byName', values: ['my_split_1', 'my_split_1'] }, { type: 'byPrefix', values: ['my_split', 'test_split_'] }]
521+
let splitFilters: SplitIO.SplitFilter[] = [{ type: 'bySet', values: ['set_a', 'set_b'] }, { type: 'byName', values: ['my_split_1', 'my_split_1'] }, { type: 'byPrefix', values: ['my_split', 'test_split_'] }]
522522

523523
// Browser integrations
524524
let fieldsObjectSample: UniversalAnalytics.FieldsObject = { hitType: 'event', eventAction: 'action' };

types/splitio.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ declare namespace SplitIO {
801801
*
802802
* @typedef {string} SplitFilterType
803803
*/
804-
type SplitFilterType = 'byName' | 'byPrefix';
804+
type SplitFilterType = 'bySet' | 'byName' | 'byPrefix';
805805
/**
806806
* Defines a feature flag filter, described by a type and list of values.
807807
*/

0 commit comments

Comments
 (0)