|
@@ -11,12 +11,7 @@ export const unassignedValue = -1;
|
|
|
/**
|
|
|
* Frontend experiment configuration object
|
|
|
*/
|
|
|
-export const experimentList: {
|
|
|
- assignments: number[] | string[];
|
|
|
- key: string;
|
|
|
- parameter: string;
|
|
|
- type: ExperimentType;
|
|
|
-}[] = [
|
|
|
+export const experimentList = [
|
|
|
{
|
|
|
key: 'OnboardingNewFooterExperiment',
|
|
|
type: ExperimentType.Organization,
|
|
@@ -29,7 +24,7 @@ export const experimentList: {
|
|
|
parameter: 'exposed',
|
|
|
assignments: [0, 1],
|
|
|
},
|
|
|
-];
|
|
|
+] as const;
|
|
|
|
|
|
export const experimentConfig = experimentList.reduce(
|
|
|
(acc, exp) => ({...acc, [exp.key]: exp}),
|