Skip to content

Commit f26c5c7

Browse files
Fix lint
1 parent e161a9e commit f26c5c7

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/evaluator/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,15 @@ function getEvaluation(
160160
return evaluation.then(result => {
161161
result.changeNumber = splitJSON.changeNumber;
162162
result.config = splitJSON.configurations && splitJSON.configurations[result.treatment] || null;
163+
// @ts-expect-error impressionsDisabled is not exposed in the public typings yet.
163164
result.impressionsDisabled = options?.impressionsDisabled || splitJSON.impressionsDisabled;
164165

165166
return result;
166167
});
167168
} else {
168169
evaluation.changeNumber = splitJSON.changeNumber;
169170
evaluation.config = splitJSON.configurations && splitJSON.configurations[evaluation.treatment] || null;
171+
// @ts-expect-error impressionsDisabled is not exposed in the public typings yet.
170172
evaluation.impressionsDisabled = options?.impressionsDisabled || splitJSON.impressionsDisabled;
171173
}
172174
}

src/utils/inputValidation/eventProperties.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ export function validateEvaluationOptions(log: ILogger, maybeOptions: any, metho
7575
const impressionsDisabled = maybeOptions.impressionsDisabled;
7676
if (!impressionsDisabled) return options;
7777

78+
// @ts-expect-error impressionsDisabled is not exposed in the public typings yet.
7879
return options ? { ...options, impressionsDisabled } : { impressionsDisabled };
7980
} else if (maybeOptions) {
8081
log.error(ERROR_NOT_PLAIN_OBJECT, [method, 'evaluation options']);

0 commit comments

Comments
 (0)