migrated the project to typescript #11
Open
+923
−854
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.
When I was looking for a lib to diff my array of objects, I stumbled on this project. I liked the simplicity of the API. I wanted to use it, but the problem was that there were no typescript types available.
So my quest was to write typescript types for the project and submit those. But then I saw that the code was a bit more complex. So to understand the code and to automatically generate types, I started translating the project into TS.
Then the tests failed, so I had to fix those and translate them to TS. Then eslint started complaining about not knowing typescript, so I also fixed that.
And finally, I thought that since most of the functions of lodash could be replaced by vanilla javascript, I tried to remove lodash to make the package smaller and less vulnerable.
So to summerise, this PR contains:
I know that it is a bit much to drop this all in one PR. and I don’t know if you want to change this repo over to typescript.
If you want only one or two of the above-mentioned changes, I’m happy to split them out for you.
I am available to answer any questions you may have, and I am happy to implement any feedback.
With kind regards,
Wvdp
PS. I am participating in hacktoberfest, so for this PR to count towards that, would you be as kind to add the
hacktoberfest-accepted
to this PR.