fisshy / react-scroll

React scroll component
https://github.com/fisshy/react-scroll/blob/master/README.md
MIT License
4.36k stars 437 forks source link

Add TypeScript Support to the Project #565

Open Danguya opened 1 year ago

Danguya commented 1 year ago

Hello team,

I'd like to propose adding TypeScript support to our project. Currently, we are using older versions of several libraries, such as webpack, babel, karma, and ECMAScript. I believe introducing TypeScript will help us write safer and more readable code, leveraging the benefits of static typing.

Reasons to adopt TypeScript:

Static Typing: This will help us catch errors at compile-time rather than run-time. Readability: TypeScript can make our code more readable, especially when dealing with complex data structures. Self-documenting: With TypeScript, we can have better self-documentation through types. IDE Integration: Many IDEs have robust support for TypeScript, which can enhance developer productivity. Proposed Tasks:

Thank you!

leandroruel commented 1 year ago

is this? https://www.npmjs.com/package/@types/react-scroll

Danguya commented 1 year ago

@leandroruel

No, I mean for us to gradually migrate the 'react-scroll' project to TypeScript, as this will make it easier for us to use the latest ECMAScript features, resulting in simpler and more modern JavaScript code. It will also allow us to move away from direct use of Babel and Webpack. I believe this will make the project more up-to-date and appealing for more developers to contribute.