fix: point type exports to correct file #355
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Since release 6.4.0, types aren't exported correctly anymore, it looks like the
dts
directory doesn't exist anymore (related to the gulp removal I think?). This PR points the package.json types tolib/index.d.ts
. It also exports the results classes under a namespace "results", as was done in 6.3.2 too and broken by the ESLint PR.Related Issue
inversify/InversifyJS#1387
Motivation and Context
Projects will correctly find the types again, and results imports will work again.
I have 0 experience with multi-platform type exports and stuff, so please do tell if I messed something up.
How Has This Been Tested?
My TypeScript 4.4.3 project is able to find the types again and the results imports are working again.
Types of changes
(it breaks a breaking change (the results export), so I guess that's a breaking change?)
Checklist: