refactor(core): export Constructor from @loopback/context#617
Conversation
Enables it's use in extension / application development without a dependency on @loopback/context
bajtos
left a comment
There was a problem hiding this comment.
Ideally, extensions should not depend on @loopback/core, but on @loopback/context only. Is it possible to achieve that?
If not, then I am ok with this change. It may be better to (re)export everything fomr @loopback/context in such case:
export * from '@loopback/context';|
It is most certainly possible to use |
Can we import both Not a big deal, I'll leave it up to you to make the final decision. |
|
Closing to avoid promoting re-exporting types not needed for Application Development. The currently re-exported functions are ok as they avoid requiring an Application Developer to import Best practice for extension developers will be to import them directly from |
Description
Enables it's use in extension / application development without a dependency on @loopback/context
Related issues
Checklist
guide