@atlaskit/tmp-editor-statsig 11.4.0 → 11.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,8 +4,8 @@ export type ProductKeys = {
4
4
  test?: string;
5
5
  };
6
6
  export type ExperimentConfigValue = {
7
- productKeys?: ProductKeys;
8
7
  param: string;
8
+ productKeys?: ProductKeys;
9
9
  typeGuard: (value: unknown) => boolean;
10
10
  } & ({
11
11
  defaultValue: boolean;
@@ -14,13 +14,13 @@ export type ExperimentConfigValue = {
14
14
  values: string[];
15
15
  });
16
16
  export type BooleanExperimentConfig = {
17
- productKeys?: ProductKeys;
18
- param: string;
19
17
  defaultValue: boolean;
18
+ param: string;
19
+ productKeys?: ProductKeys;
20
20
  };
21
21
  export type MultivariateExperimentConfig<T extends string[]> = {
22
- productKeys?: ProductKeys;
22
+ defaultValue: T[number];
23
23
  param: string;
24
+ productKeys?: ProductKeys;
24
25
  values: [...T];
25
- defaultValue: T[number];
26
26
  };
@@ -40,13 +40,13 @@ type DescribeBody = Parameters<typeof describe>[1];
40
40
  * - https://hello.atlassian.net/wiki/spaces/AF/pages/2569505829/Task+Testing+your+feature+flag+in+platform+and+product#Legacy-API-lEGACY
41
41
  */
42
42
  declare function eeTest<ExperimentName extends keyof EditorExperimentsConfig>(experimentName: ExperimentName, cases: EditorExperimentsConfig[ExperimentName]['defaultValue'] extends string ? Record<EditorExperimentsConfig[ExperimentName]['defaultValue'], DescribeBody> : {
43
- true: DescribeBody;
44
43
  false: DescribeBody;
44
+ true: DescribeBody;
45
45
  }, otherExperiments?: EditorExperimentOverrides): void;
46
46
  declare namespace eeTest {
47
47
  var describe: <ExperimentName extends keyof EditorExperimentsConfig>(experimentName: ExperimentName, describeName: string) => {
48
- variant: (value: EditorExperimentsConfig[ExperimentName]["defaultValue"], describeBody: DescribeBody) => void;
49
48
  each: (describeBody: DescribeBody) => void;
49
+ variant: (value: EditorExperimentsConfig[ExperimentName]["defaultValue"], describeBody: DescribeBody) => void;
50
50
  };
51
51
  }
52
52
  export { eeTest };
@@ -6,8 +6,8 @@ import type { BooleanExperimentConfig, MultivariateExperimentConfig } from './ty
6
6
  export declare function createBooleanExperiment(config: BooleanExperimentConfig): {
7
7
  typeGuard: typeof isBoolean;
8
8
  defaultValue: boolean;
9
- productKeys?: import("./types").ProductKeys;
10
9
  param: string;
10
+ productKeys?: import("./types").ProductKeys;
11
11
  };
12
12
  /**
13
13
  * Helper to create a multivariate experiment configuration
@@ -18,6 +18,6 @@ export declare function createMultivariateExperiment<T extends string[]>(config:
18
18
  ][number][];
19
19
  typeGuard: (value: unknown) => value is T[number];
20
20
  defaultValue: T[number];
21
- productKeys?: import("./types").ProductKeys;
22
21
  param: string;
22
+ productKeys?: import("./types").ProductKeys;
23
23
  };