mirror of
https://github.com/Unleash/unleash.git
synced 2024-11-01 19:07:38 +01:00
24 lines
601 B
TypeScript
24 lines
601 B
TypeScript
|
export interface IExperimentalOptions {
|
||
|
metricsV2?: IExperimentalToggle;
|
||
|
clientFeatureMemoize?: IExperimentalToggle;
|
||
|
segments?: IExperimentalSegments;
|
||
|
}
|
||
|
|
||
|
export interface IExperimentalToggle {
|
||
|
enabled: boolean;
|
||
|
}
|
||
|
|
||
|
export interface IExperimentalSegments {
|
||
|
enableSegmentsClientApi: boolean;
|
||
|
enableSegmentsAdminApi: boolean;
|
||
|
inlineSegmentConstraints: boolean;
|
||
|
}
|
||
|
|
||
|
export const experimentalSegmentsConfig = (): IExperimentalSegments => {
|
||
|
return {
|
||
|
enableSegmentsAdminApi: true,
|
||
|
enableSegmentsClientApi: true,
|
||
|
inlineSegmentConstraints: true,
|
||
|
};
|
||
|
};
|