File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,9 +59,8 @@ function createConfigArrayObject(arr: any[]): SplitIO.ConfigArray {
5959 } ;
6060}
6161
62- export function parseConfig ( config : string | object | null ) : SplitIO . Config {
62+ export function parseConfig ( config ? : string | object | null ) : SplitIO . Config {
6363 try {
64- // @ts -ignore
6564 return createConfigObject ( isString ( config ) ? JSON . parse ( config ) : config ) ;
6665 } catch {
6766 return createConfigObject ( null ) ;
Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ export const TREATMENTS_BY_FLAGSET = 'tf';
8686export const TREATMENTS_BY_FLAGSETS = 'tfs' ;
8787export const TREATMENTS_WITH_CONFIG_BY_FLAGSET = 'tcf' ;
8888export const TREATMENTS_WITH_CONFIG_BY_FLAGSETS = 'tcfs' ;
89+ export const CONFIG = 'c' ;
8990export const TRACK = 'tr' ;
9091
9192export const CONNECTION_ESTABLISHED = 0 ;
You can’t perform that action at this time.
0 commit comments