Skip to content

Conversation

max-schaefer
Copy link
Contributor

@max-schaefer max-schaefer commented Aug 31, 2020

In #4082, I'd like to use PromiseFlow::storeStep directly instead of going via PromiseTypeTracking::promiseStep, since that seems to require importing an internal module in order to be able to access StoreStep. (Or perhaps there is a better way of achieving the same thing?)

@max-schaefer max-schaefer requested a review from a team as a code owner August 31, 2020 10:59
Copy link
Contributor

@erik-krogh erik-krogh left a comment

Choose a reason for hiding this comment

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

since that seems to require importing an internal module in order to be able to access StoreStep.

That is correct.

I think it is OK to do the private import inside your library code, but I can definitely see why you would want to make PromiseFlow public instead of importing an internal module.

PromiseFlow is also sufficiently documented that it looks OK to me to make it public.

@codeql-ci codeql-ci merged commit 35494ab into github:main Aug 31, 2020
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