Skip to content

Commit 0a2586c

Browse files
author
Daniel OBrien
committed
fix inadvertantly removed comment
1 parent 5b1336e commit 0a2586c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

packages/shared/sdk-server/src/api/LDClient.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)