-
Notifications
You must be signed in to change notification settings - Fork 64
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
Move to @types #116
Comments
I can't speak for @donnut, but I'm under the impression he's become less active here. I'm currently actively using Ramda with Angular 2, so I have a vested interest in helping out to maintain these type definitions. I've tried to improve on the existing typings and merged all commits across the network in as well. If possible, I'd be interested in helping out with a repo at @types as well. |
By the way, a related discussion popped up at the main repo, about the idea of merging typings into the main repo. How would you view this consideration of placing type definitions with P.S.: since you'd be more knowledgeable on the TypeScript side, one thing I'd be interested in getting opinions on would be how to handle currying more effectively.
I felt this was a bit of a pain point currently, and had wondered if we could just do one definition in a single curried definition like that, although currently it appeared parameterized functions (-> using generics) failed to parse for me that way. If you'd have any suggestions on how we could improve maintainability there, it'd be much appreciated. :) |
The best place for type definitions is always with the repo - it enables us TypeScript users to use it immediately without needing to do anything else. I'll try to help out on the other issues when I get a chance, but I can't currently think of a good solution. I like the generic approach also (at least until variadic kinds land) but it has a few side effects - just need to wait for variadic kinds. |
Thanks for the input. Looking forward to that. :) |
With everyone's preference so far seeming to go toward a merge into the main ramda repo, I'm inclined to think this can be closed unless that plan were to fail somehow. If so we can reopen again. :) |
We're currently worrying about getting constrained in versioning in case of a merge with Ramda (I think we might appreciate the freedoms of a faster publishing cycle), so your proposal might still remain relevant. One question having the repo in @types would raise for me though would be w.r.t. where users should file their typing-related issues, especially since for the purpose of github's linking of issues to commits/PRs afaik it'd be desirable to have typing issues in the same repo as the typings code itself. |
We'd just add whoever can move the repo to the @types repo and they can move the repo into @types. Redirects would work through GitHub. You can browse through @types repos to see, but it's maintained just like here - just it's in an org where dozens of others can also pick up on maintenance if needed. |
Thanks. I think my own concerns are addressed. |
There was one compatibility-breaking feature request I'd suggested to relegate to a branch (see #113). To my understanding from the Types guidelines it'd be possible to have that survive DefinitelyTyped for end-user consumption if using a branch / folder, right? |
Sure, a branch works. Whatever makes it easier for you to maintain, I've been doing a little bit of branching when releasing a new major version to be able to update bugs in previous major versions, though I don't find that to be an issue often. In terms of DefinitelyTyped, we're currently having to manually make PRs to it (if you're maintaining a copy there) until microsoft/types-publisher#4 lands (we're all stuck waiting for that sadly). |
Alright, cool. Wouldn't be the first addition on my wishlist, so oh well. :) |
@blakeembrey: could you perhaps send @donnut an invite as well? I fear the issue lists are all in the current repo, which I imagine only he would the ability to move over. |
@blakeembrey: hey, just pinging again in the event you'd missed this earlier; if there are any complications feel free to bring them up. |
Guess it's in his hands now then, thanks again! :) |
Few things we wanted to confirm:
|
Yes to 1 and 2, it's worked in the past without issue. |
Still waiting for Erwin to perform the move, but I just had an unrelated question pop up I wouldn't know well where else to ask. I know how we were testing now, and felt some concern about it, but now found that the situation for Lodash at DefinitelyTyped appeared no different. From what I can see, this way of testing now helps test for cases where typings are improperly strict (-> error), but not for cases where the typings are improperly vague (-> no compilation error, all gone at run-time so no good way to test by writing run-time tests that I'm currently aware of). Is this just me, or is that just the current state of TS definition testing? |
@tycho01 I may have misinterpreted, but it sounds like you're asking about testing runtime vs definition time? If so, you may be able to find up some old Typings threads on this, but from mine and @types perspective we've always tested both the runtime and compile time using something like If that wasn't what you were asking, let me know 😄 I believe DefinitelyTyped has always just tested compile time using |
Hm. If TS infers a function to return |
I think it'd be easy enough to write a little script for it. Just run |
Interesting approach :), I hadn't quite thought of that. Thanks! |
Move the repo, as you noticed ;) |
@donnut Done! 👍 |
@blakeembrey: you mentioned PRs to DefinitelyTyped to publish. That seems a little different from the PRs I'm familiar with in the sense this would only be part of their repository. Might you have any reference on how to do this? |
@tycho01 They have an automated script watching DefinitelyTyped to re-publish packages on changes. See microsoft/types-publisher#4 for information where we're trying to get redirects supported. |
Okay. Until then, I suppose I'm okay even without being able to get it updated -- still a pretty big TS issue severely hampering usefulness of the Ramda typings anyway. |
Hi @donnut. Wanted to open this up for feedback from you, but would be interested in moving this repo into @types with the rest of the projects? I'd love to help out on this definition where possible and I'm happy to add you to that organisation, if you'd like (with or without moving this repo).
The text was updated successfully, but these errors were encountered: