1
1
import {
2
2
EvaluationContext,
3
- FlagEvaluationOptions,
4
3
Provider,
5
4
ResolutionDetails,
6
5
} from '@openfeature/nodejs-sdk';
@@ -10,40 +9,36 @@ export class <%= libClassName %> implements Provider {
10
9
name: <%= libClassName %>.name
11
10
};
12
11
13
- contextTransformer = () => ({}) ;
12
+ hooks = [] ;
14
13
15
14
resolveBooleanEvaluation(
16
15
flagKey: string,
17
16
defaultValue: boolean,
18
- transformedContext: EvaluationContext,
19
- options: FlagEvaluationOptions
17
+ context: EvaluationContext
20
18
): Promise<ResolutionDetails<boolean>> {
21
19
throw new Error('Method not implemented.');
22
20
}
23
21
24
22
resolveStringEvaluation(
25
23
flagKey: string,
26
24
defaultValue: string,
27
- transformedContext: EvaluationContext,
28
- options: FlagEvaluationOptions
25
+ context: EvaluationContext
29
26
): Promise<ResolutionDetails<string>> {
30
27
throw new Error('Method not implemented.');
31
28
}
32
29
33
30
resolveNumberEvaluation(
34
31
flagKey: string,
35
32
defaultValue: number,
36
- transformedContext: EvaluationContext,
37
- options: FlagEvaluationOptions
33
+ context: EvaluationContext
38
34
): Promise<ResolutionDetails<number>> {
39
35
throw new Error('Method not implemented.');
40
36
}
41
37
42
38
resolveObjectEvaluation<U extends object>(
43
39
flagKey: string,
44
40
defaultValue: U,
45
- transformedContext: EvaluationContext,
46
- options: FlagEvaluationOptions
41
+ context: EvaluationContext
47
42
): Promise<ResolutionDetails<U>> {
48
43
throw new Error('Method not implemented.');
49
44
}
0 commit comments