-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Please reconsider owning your own typings. #967
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Neither Tim nor I are TS experts (he's used it a bit, I haven't used TS at all), and we don't have the expertise needed to maintain them. In addition, the last couple of releases we've shipped for Redux and React-Redux that have had typings changes have led to a slew of issues being filed complaining about them, particularly complaints that the changes to typings in Redux-Thunk 2.3 constitute breaking changes. I can't do anything to maintain those typings, Tim can't do much, and frankly it's too much of a hassle. We have other things we need to be focusing on. My impression is that it makes a lot more sense to let the community handle them on DefinitelyTyped so they can be updated at their own pace. |
Thank you for the quick response, @markerikson. I can definitely understand that hesitation. I suppose all I can ask is that the maintainers at least consider some of the upsides rather than strictly the reasons for not doing it. It seems like this community has been asking for this for the past 2 years. I get it, ultimately it's your decision, but I wanted to bring this to you guys again in case you had reconsidered since the last reconsideration 6 months ago 😛 . |
And completely aside from this discussion on whether or not typings will go into this library. I encourage you to give TypeScript a shot! You might fall in love! |
I actually think there's definite potential benefits in using either TS or Flow. But, neither of the apps I build at work are in a position to fully add a type layer on top atm. I briefly experimented with Flow last year, just long enough to get a feel for what adding it might be like. However, given our current toolchain and codebase, TS is not a likely option, and I don't have any side projects atm either. So, no, I probably won't be actually trying to use TS myself any time soon. As for your previous question: can you point to some of these discussions you're referring to? This is the first I've heard any of this. (But, then again, I've deliberately avoided all of the TS-related threads for a long time now, because I don't have anything useful to add and far too much else on my plate.) |
Sure. Some are less directly related than others, but this is what I have read through.
I imagine requests for something like this won't stop coming in. |
Hmm. Thanks for collecting those links. That said, I think these prior comments from Tim and myself still apply:
To be frank, my personal opinion is that a lot of people spend too much time obsessing over getting typings exactly right. I understand the desire of having universal solid type coverage for an app, and it's certainly not a bad thing, but to me the time spent going for that last 10% of type coverage seems to be way in excess of the actual benefits. Anyway, unless @timdorr has greatly changed his stance on this, I don't see us moving towards handling the typings here with the lib. My personal priorities as a maintainer for the near future revolve around reworking our implementation to cooperate with async React behavior, not trying to spend hours learning the nuances of TS and Flow. Thanks for the discussion, and hopefully I've clarified why this isn't something we want to do right now. |
Typescript is becoming more and more prevalent in the development community. Large library maintainers/organizations are starting to realize this and are bringing in typings into their own repositories rather than having thing hang around unmonitored on DT. By doing this, you avoid alienating TS (and JS developers who value typings) because there is much more assurance that the typings that ship with a new release are as stable as the released library. I know this has been revisited a couple times, but I'm asking again, from the bottom of the hearts of the collective React/Redux/TS community, to please reconsider owning the typings for this helpful library. This is a very popular JS library. Redux ships with typings, I think it's a fair request that this library seriously considers doing the same.
Currently there are 71 open issues related to the react-redux typings on DT.
Thanks for considering!
The text was updated successfully, but these errors were encountered: