@@ -45,7 +45,6 @@ export interface Provider extends CommonProvider {
4545 resolveBooleanEvaluation (
4646 flagKey : string ,
4747 defaultValue : boolean ,
48- context : EvaluationContext ,
4948 logger : Logger
5049 ) : ResolutionDetails < boolean > ;
5150
@@ -55,7 +54,6 @@ export interface Provider extends CommonProvider {
5554 resolveStringEvaluation (
5655 flagKey : string ,
5756 defaultValue : string ,
58- context : EvaluationContext ,
5957 logger : Logger
6058 ) : ResolutionDetails < string > ;
6159
@@ -65,7 +63,6 @@ export interface Provider extends CommonProvider {
6563 resolveNumberEvaluation (
6664 flagKey : string ,
6765 defaultValue : number ,
68- context : EvaluationContext ,
6966 logger : Logger
7067 ) : ResolutionDetails < number > ;
7168
@@ -75,7 +72,6 @@ export interface Provider extends CommonProvider {
7572 resolveObjectEvaluation < T extends JsonValue > (
7673 flagKey : string ,
7774 defaultValue : T ,
78- context : EvaluationContext ,
7975 logger : Logger
8076 ) : ResolutionDetails < T > ;
8177}
@@ -166,14 +162,12 @@ export interface Features {
166162 *
167163 * @param {string } flagKey The flag key uniquely identifies a particular flag
168164 * @param {boolean } defaultValue The value returned if an error occurs
169- * @param {EvaluationContext } context The evaluation context used on an individual flag evaluation
170165 * @param {FlagEvaluationOptions } options Additional flag evaluation options
171166 * @returns {boolean } Flag evaluation response
172167 */
173168 getBooleanValue (
174169 flagKey : string ,
175170 defaultValue : boolean ,
176- context ?: EvaluationContext ,
177171 options ?: FlagEvaluationOptions
178172 ) : boolean ;
179173
@@ -182,14 +176,12 @@ export interface Features {
182176 *
183177 * @param {string } flagKey The flag key uniquely identifies a particular flag
184178 * @param {boolean } defaultValue The value returned if an error occurs
185- * @param {EvaluationContext } context The evaluation context used on an individual flag evaluation
186179 * @param {FlagEvaluationOptions } options Additional flag evaluation options
187180 * @returns {EvaluationDetails<boolean> } Flag evaluation details response
188181 */
189182 getBooleanDetails (
190183 flagKey : string ,
191184 defaultValue : boolean ,
192- context ?: EvaluationContext ,
193185 options ?: FlagEvaluationOptions
194186 ) : EvaluationDetails < boolean > ;
195187
@@ -199,20 +191,17 @@ export interface Features {
199191 * @param {string } flagKey The flag key uniquely identifies a particular flag
200192 * @template {string} T A optional generic argument constraining the string
201193 * @param {T } defaultValue The value returned if an error occurs
202- * @param {EvaluationContext } context The evaluation context used on an individual flag evaluation
203194 * @param {FlagEvaluationOptions } options Additional flag evaluation options
204195 * @returns {T } Flag evaluation response
205196 */
206197 getStringValue (
207198 flagKey : string ,
208199 defaultValue : string ,
209- context ?: EvaluationContext ,
210200 options ?: FlagEvaluationOptions
211201 ) : string ;
212202 getStringValue < T extends string = string > (
213203 flagKey : string ,
214204 defaultValue : T ,
215- context ?: EvaluationContext ,
216205 options ?: FlagEvaluationOptions
217206 ) : T ;
218207
@@ -222,20 +211,17 @@ export interface Features {
222211 * @param {string } flagKey The flag key uniquely identifies a particular flag
223212 * @template {string} T A optional generic argument constraining the string
224213 * @param {T } defaultValue The value returned if an error occurs
225- * @param {EvaluationContext } context The evaluation context used on an individual flag evaluation
226214 * @param {FlagEvaluationOptions } options Additional flag evaluation options
227215 * @returns {EvaluationDetails<T> } Flag evaluation details response
228216 */
229217 getStringDetails (
230218 flagKey : string ,
231219 defaultValue : string ,
232- context ?: EvaluationContext ,
233220 options ?: FlagEvaluationOptions
234221 ) : EvaluationDetails < string > ;
235222 getStringDetails < T extends string = string > (
236223 flagKey : string ,
237224 defaultValue : T ,
238- context ?: EvaluationContext ,
239225 options ?: FlagEvaluationOptions
240226 ) : EvaluationDetails < T > ;
241227
@@ -245,20 +231,17 @@ export interface Features {
245231 * @param {string } flagKey The flag key uniquely identifies a particular flag
246232 * @template {number} T A optional generic argument constraining the number
247233 * @param {T } defaultValue The value returned if an error occurs
248- * @param {EvaluationContext } context The evaluation context used on an individual flag evaluation
249234 * @param {FlagEvaluationOptions } options Additional flag evaluation options
250235 * @returns {T } Flag evaluation response
251236 */
252237 getNumberValue (
253238 flagKey : string ,
254239 defaultValue : number ,
255- context ?: EvaluationContext ,
256240 options ?: FlagEvaluationOptions
257241 ) : number
258242 getNumberValue < T extends number = number > (
259243 flagKey : string ,
260244 defaultValue : T ,
261- context ?: EvaluationContext ,
262245 options ?: FlagEvaluationOptions
263246 ) : T ;
264247
@@ -268,20 +251,17 @@ export interface Features {
268251 * @param {string } flagKey The flag key uniquely identifies a particular flag
269252 * @template {number} T A optional generic argument constraining the number
270253 * @param {T } defaultValue The value returned if an error occurs
271- * @param {EvaluationContext } context The evaluation context used on an individual flag evaluation
272254 * @param {FlagEvaluationOptions } options Additional flag evaluation options
273255 * @returns {Promise<EvaluationDetails<T>> } Flag evaluation details response
274256 */
275257 getNumberDetails (
276258 flagKey : string ,
277259 defaultValue : number ,
278- context ?: EvaluationContext ,
279260 options ?: FlagEvaluationOptions
280261 ) : EvaluationDetails < number > ;
281262 getNumberDetails < T extends number = number > (
282263 flagKey : string ,
283264 defaultValue : T ,
284- context ?: EvaluationContext ,
285265 options ?: FlagEvaluationOptions
286266 ) : EvaluationDetails < T > ;
287267
@@ -291,20 +271,17 @@ export interface Features {
291271 * @param {string } flagKey The flag key uniquely identifies a particular flag
292272 * @template {JsonValue} T A optional generic argument describing the structure
293273 * @param {T } defaultValue The value returned if an error occurs
294- * @param {EvaluationContext } context The evaluation context used on an individual flag evaluation
295274 * @param {FlagEvaluationOptions } options Additional flag evaluation options
296275 * @returns {Promise<T> } Flag evaluation response
297276 */
298277 getObjectValue (
299278 flagKey : string ,
300279 defaultValue : JsonValue ,
301- context ?: EvaluationContext ,
302280 options ?: FlagEvaluationOptions
303281 ) : JsonValue ;
304282 getObjectValue < T extends JsonValue = JsonValue > (
305283 flagKey : string ,
306284 defaultValue : T ,
307- context ?: EvaluationContext ,
308285 options ?: FlagEvaluationOptions
309286 ) : T ;
310287
@@ -314,20 +291,17 @@ export interface Features {
314291 * @param {string } flagKey The flag key uniquely identifies a particular flag
315292 * @template {JsonValue} T A optional generic argument describing the structure
316293 * @param {T } defaultValue The value returned if an error occurs
317- * @param {EvaluationContext } context The evaluation context used on an individual flag evaluation
318294 * @param {FlagEvaluationOptions } options Additional flag evaluation options
319295 * @returns {Promise<EvaluationDetails<T>> } Flag evaluation details response
320296 */
321297 getObjectDetails (
322298 flagKey : string ,
323299 defaultValue : JsonValue ,
324- context ?: EvaluationContext ,
325300 options ?: FlagEvaluationOptions
326301 ) : EvaluationDetails < JsonValue > ;
327302 getObjectDetails < T extends JsonValue = JsonValue > (
328303 flagKey : string ,
329304 defaultValue : T ,
330- context ?: EvaluationContext ,
331305 options ?: FlagEvaluationOptions
332306 ) : EvaluationDetails < T > ;
333307}
0 commit comments