Skip to content

Commit 858bb96

Browse files
Polishing
1 parent 30d102f commit 858bb96

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/sdkConfig/configObject.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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);

src/utils/constants/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ export const TREATMENTS_BY_FLAGSET = 'tf';
8686
export const TREATMENTS_BY_FLAGSETS = 'tfs';
8787
export const TREATMENTS_WITH_CONFIG_BY_FLAGSET = 'tcf';
8888
export const TREATMENTS_WITH_CONFIG_BY_FLAGSETS = 'tcfs';
89+
export const CONFIG = 'c';
8990
export const TRACK = 'tr';
9091

9192
export const CONNECTION_ESTABLISHED = 0;

0 commit comments

Comments
 (0)