Skip to content

Commit fd9ad53

Browse files
authored
chore: update provider template (#105)
Signed-off-by: Michael Beemer <[email protected]>
1 parent 326e65a commit fd9ad53

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

tools/generators/open-feature/files/provider/src/lib/__libFileName__.ts__tmpl__

+5-10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import {
22
EvaluationContext,
3-
FlagEvaluationOptions,
43
Provider,
54
ResolutionDetails,
65
} from '@openfeature/nodejs-sdk';
@@ -10,40 +9,36 @@ export class <%= libClassName %> implements Provider {
109
name: <%= libClassName %>.name
1110
};
1211

13-
contextTransformer = () => ({});
12+
hooks = [];
1413

1514
resolveBooleanEvaluation(
1615
flagKey: string,
1716
defaultValue: boolean,
18-
transformedContext: EvaluationContext,
19-
options: FlagEvaluationOptions
17+
context: EvaluationContext
2018
): Promise<ResolutionDetails<boolean>> {
2119
throw new Error('Method not implemented.');
2220
}
2321

2422
resolveStringEvaluation(
2523
flagKey: string,
2624
defaultValue: string,
27-
transformedContext: EvaluationContext,
28-
options: FlagEvaluationOptions
25+
context: EvaluationContext
2926
): Promise<ResolutionDetails<string>> {
3027
throw new Error('Method not implemented.');
3128
}
3229

3330
resolveNumberEvaluation(
3431
flagKey: string,
3532
defaultValue: number,
36-
transformedContext: EvaluationContext,
37-
options: FlagEvaluationOptions
33+
context: EvaluationContext
3834
): Promise<ResolutionDetails<number>> {
3935
throw new Error('Method not implemented.');
4036
}
4137

4238
resolveObjectEvaluation<U extends object>(
4339
flagKey: string,
4440
defaultValue: U,
45-
transformedContext: EvaluationContext,
46-
options: FlagEvaluationOptions
41+
context: EvaluationContext
4742
): Promise<ResolutionDetails<U>> {
4843
throw new Error('Method not implemented.');
4944
}

0 commit comments

Comments
 (0)