We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 730bb2e commit b9bcbc9Copy full SHA for b9bcbc9
src/feature-management/src/common/targetingContext.ts
@@ -1,9 +1,21 @@
1
// Copyright (c) Microsoft Corporation.
2
// Licensed under the MIT license.
3
4
+/**
5
+ * Contextual information that is required to perform a targeting evaluation.
6
+ */
7
export interface ITargetingContext {
8
+ /**
9
+ * The user id that should be considered when evaluating if the context is being targeted.
10
11
userId?: string;
12
13
+ * The groups that should be considered when evaluating if the context is being targeted.
14
15
groups?: string[];
16
}
17
18
19
+ * Type definition for a function that, when invoked, returns the @see ITargetingContext for targeting evaluation.
20
21
export type TargetingContextAccessor = () => ITargetingContext;
0 commit comments