Skip to content

Commit b9bcbc9

Browse files
add comments
1 parent 730bb2e commit b9bcbc9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,21 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT license.
33

4+
/**
5+
* Contextual information that is required to perform a targeting evaluation.
6+
*/
47
export interface ITargetingContext {
8+
/**
9+
* The user id that should be considered when evaluating if the context is being targeted.
10+
*/
511
userId?: string;
12+
/**
13+
* The groups that should be considered when evaluating if the context is being targeted.
14+
*/
615
groups?: string[];
716
}
817

18+
/**
19+
* Type definition for a function that, when invoked, returns the @see ITargetingContext for targeting evaluation.
20+
*/
921
export type TargetingContextAccessor = () => ITargetingContext;

0 commit comments

Comments
 (0)