Skip to content

fix: Allow using --isolatedModules flag in tsconfig by fixing exports in event_processor #610

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 4, 2020

Conversation

yavorona
Copy link
Contributor

@yavorona yavorona commented Nov 4, 2020

Summary

  • Allow using --isolatedModules flag in tsconfig by fixing exports in event_processor

Test plan

FSC and unit tests

Issues

SDK-issue 609

@yavorona yavorona requested a review from a team as a code owner November 4, 2020 21:21
@yavorona yavorona assigned yavorona and unassigned yavorona Nov 4, 2020
@coveralls
Copy link

coveralls commented Nov 4, 2020

Coverage Status

Coverage decreased (-0.0004%) to 96.706% when pulling e34d826 on pnguen/export-type-event-processor into 1997ca4 on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.0004%) to 96.706% when pulling 0c30259 on pnguen/export-type-event-processor into 1997ca4 on master.

@@ -22,6 +22,6 @@ export function createEventProcessor(
return new LogTierV1EventProcessor(...args);
}

export { EventProcessor, LocalStoragePendingEventsDispatcher } from '@optimizely/js-sdk-event-processor';
export type { EventProcessor, LocalStoragePendingEventsDispatcher } from '@optimizely/js-sdk-event-processor';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest removing LocalStoragePendingEventsDispatcher - as we discussed, nothing is using it, and I got confused thinking this change would cause a problem.

Suggested change
export type { EventProcessor, LocalStoragePendingEventsDispatcher } from '@optimizely/js-sdk-event-processor';
export type { EventProcessor } from '@optimizely/js-sdk-event-processor';

@yavorona yavorona merged commit c5301c5 into master Nov 4, 2020
@yavorona yavorona deleted the pnguen/export-type-event-processor branch November 4, 2020 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants