-
Notifications
You must be signed in to change notification settings - Fork 662
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
@slack/client incompatible with @types/[email protected] #612
Comments
Is there a reason that |
@igrayson thanks for reporting, i'll try digging into what exactly should be done to resolve this, but i'm open to ideas. |
In our vended packages, we only put The rest are declared as For We've actually learned to entirely avoid re-exporting types (can get you in different kind of trouble), but that's not an immediate concern here. |
yes, this is something i've heard before, but as far as i can tell the jury is still out on whether this is truly a best practice. the question of in this case, i believe the typings for i think the best way to resolve this issue would be to improve the type declarations for bluebird. from reading through the source, it seems like the author(s) of that declaration file know they've done some things wrong, and have even marked this particular |
I got a similar problem in my CI with latest
Posting it here because it's a Typescript related problem, let me know if you prefer me creating a new issue. |
@freezy i'm fairly certain that the solution to your problem would be to include the this is a new requirement since the v4.4.0 release, so thanks for catching it! i'm not sure how to document this appropriately, but i'll create a new issue to capture the need. |
How about just adding
to your |
@freezy i agree, and making dependents maintain the deps was not the intention. |
Bluebird typings may be improve-able (although there could be a reason they took the approach they did; they more scrutiny than most libraries), but that is perhaps orthogonal to this issue. I think Re:
What do you think? |
@igrayson i understand your point about internal versus exported or exposed types. i also think its valid. but the downside of separating specific it's clear that we can debate this forever, so i think a reasonable approach would be to at least bring visibility to the problem with the |
i'm making my way through the DefinitelyTyped repo and looking at the bluebird type definitions. i noticed that in the latest major version (v3.x), the issue i cited is resolved. namely, in this version the it seems like nobody has touched the 2.x type declarations in about a year. if this is a blocker for you, it might be a potentially faster resolution to upgrade your usage to v3.x of bluebird. |
Description
If a typescript project is using
@types/[email protected]
, it cannot use@slack/client
.What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)Bug Report
Filling out the following details about bugs will help us solve your issue sooner.
Reproducible in:
@slack/client
version: 4.3.1node version: 8.9.1
OS version(s):
Steps to reproduce:
Expected result:
compiles
Actual result:
doesn't compile
The text was updated successfully, but these errors were encountered: