File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
packages/shared/sdk-server/src/api Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,20 @@ export interface LDClient {
8888 */
8989 waitForInitialization ( options ?: LDWaitForInitializationOptions ) : Promise < LDClient > ;
9090
91+ /**
92+ * Determines the variation of a feature flag for a context.
93+ *
94+ * @param key The unique key of the feature flag.
95+ * @param context The context requesting the flag. The client will generate an analytics event to
96+ * register this context with LaunchDarkly if the context does not already exist.
97+ * @param defaultValue The default value of the flag, to be used if the value is not available
98+ * from LaunchDarkly.
99+ * @param callback A Node-style callback to receive the result value. If omitted, you will receive
100+ * a Promise instead.
101+ * @returns
102+ * If you provided a callback, then nothing. Otherwise, a Promise which will be resolved with
103+ * the result value.
104+ */
91105 variation (
92106 key : string ,
93107 context : LDContext ,
You can’t perform that action at this time.
0 commit comments