-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathfeatureFlagOptions.ts
More file actions
29 lines (25 loc) · 926 Bytes
/
featureFlagOptions.ts
File metadata and controls
29 lines (25 loc) · 926 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { FeatureFlagRefreshOptions } from "../refresh/refreshOptions.js";
import { SettingSelector } from "../types.js";
/**
* Options used to configure feature flags.
*/
export interface FeatureFlagOptions {
/**
* Specifies whether feature flags will be loaded from Azure App Configuration.
*/
enabled: boolean;
/**
* Specifies what feature flags to include in the configuration provider.
*
* @remarks
* keyFilter of selector will be prefixed with "appconfig.featureflag/" when request is sent.
* If no selectors are specified then all feature flags with no label will be included.
*/
selectors?: SettingSelector[];
/**
* Specifies how feature flag refresh is configured. All selected feature flags will be watched for changes.
*/
refresh?: FeatureFlagRefreshOptions;
}