From fe0520054f3b64b71d5c3cb03a93c784b177b10d Mon Sep 17 00:00:00 2001 From: tyiuhc Date: Thu, 30 Nov 2023 13:43:42 -0800 Subject: [PATCH] update desc --- packages/experiment-browser/src/config.ts | 25 ++++++++++++----------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/packages/experiment-browser/src/config.ts b/packages/experiment-browser/src/config.ts index bcdc566e..4e978889 100644 --- a/packages/experiment-browser/src/config.ts +++ b/packages/experiment-browser/src/config.ts @@ -1,10 +1,10 @@ -import { FetchHttpClient } from './transport/http'; -import { ExperimentAnalyticsProvider } from './types/analytics'; -import { ExposureTrackingProvider } from './types/exposure'; -import { ExperimentUserProvider } from './types/provider'; -import { Source } from './types/source'; -import { HttpClient } from './types/transport'; -import { Variant, Variants } from './types/variant'; +import {FetchHttpClient} from './transport/http'; +import {ExperimentAnalyticsProvider} from './types/analytics'; +import {ExposureTrackingProvider} from './types/exposure'; +import {ExperimentUserProvider} from './types/provider'; +import {Source} from './types/source'; +import {HttpClient} from './types/transport'; +import {Variant, Variants} from './types/variant'; /** * @category Configuration @@ -29,11 +29,6 @@ export interface ExperimentConfig { */ fallbackVariant?: Variant; - /** - * Initial values for flags. - */ - initialFlags?: string; - /** * Initial values for variants. This is useful for bootstrapping the * client with fallbacks and values evaluated from server-side rendering. @@ -41,6 +36,12 @@ export interface ExperimentConfig { */ initialVariants?: Variants; + /** + * Initial values for flags. This is useful for bootstrapping the + * client with fallbacks for flag configs. + */ + initialFlags?: string; + /** * Determines the primary source of variants and variants before falling back. * @see Source