Skip to content

Commit e08bfab

Browse files
committed
fix Lint
1 parent 6ebe2f9 commit e08bfab

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/event-processor/src/eventProcessor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export type ProcessableEvent = ConversionEvent | ImpressionEvent
3131
export type EventDispatchResult = { result: boolean; event: ProcessableEvent }
3232

3333
export interface EventProcessor extends Managed {
34-
process(event: Partial<ProcessableEvent>): void
34+
process(event: ProcessableEvent): void
3535
}
3636

3737
export function validateAndGetFlushInterval(flushInterval: number): number {

packages/optimizely-sdk/lib/optimizely/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ export default class Optimizely {
255255
configObj: configObj,
256256
});
257257
// TODO is it okay to not pass a projectConfig as second argument
258-
this.eventProcessor.process(impressionEvent);
258+
this.eventProcessor.process(impressionEvent as eventProcessor.ProcessableEvent);
259259
this.__emitNotificationCenterActivate(experimentKey, variationKey, userId, attributes);
260260
}
261261

@@ -344,7 +344,7 @@ export default class Optimizely {
344344
});
345345
this.logger.log(LOG_LEVEL.INFO, sprintf(enums.LOG_MESSAGES.TRACK_EVENT, MODULE_NAME, eventKey, userId));
346346
// TODO is it okay to not pass a projectConfig as second argument
347-
this.eventProcessor.process(conversionEvent);
347+
this.eventProcessor.process(conversionEvent as eventProcessor.ProcessableEvent);
348348
this.__emitNotificationCenterTrack(eventKey, userId, attributes as UserAttributes, eventTags);
349349
} catch (e) {
350350
this.logger.log(LOG_LEVEL.ERROR, e.message);

packages/optimizely-sdk/lib/shared_types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export interface OptimizelyConfig {
122122
}
123123

124124
/**
125-
* Temprorary location LogTierV1EventProcessorConfig
125+
* Temprorary placement of LogTierV1EventProcessorConfig
126126
*/
127127
export interface LogTierV1EventProcessorConfig {
128128
dispatcher: import ('@optimizely/js-sdk-event-processor').EventDispatcher;

0 commit comments

Comments
 (0)