-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
AWS definitions broke all builds #1223
Comments
@blakeembrey the bug about implicit |
@blakeembrey #1221 has just been merged in, I'll go through and see if there are any other methods returning implicit Regarding For your third point, on typescriptlang.org it mentions that references to paths should not be used in definition files, and using |
@chrisradek I had my own local definitions that were incomplete (mostly just polyfilled for what I was using).
It's not entirely true. The Edit: Sorry, I just realised it might still be unclear. You can absolutely use any of the imports, it's just the |
Firstly, thank you for creating these definitions! I've been involved in maintaining these definitions at DefinitelyTyped for years and I can't keep up with you folks. 😦 https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/aws-sdk/aws-sdk.d.ts That said, this broke my builds too. I've not using @types yet either. Are you planning to contribute the definitions to DefinitelyTyped? Your definitions should replace mine ideally! |
@blakeembry It seems like the best thing to do is remove the types reference then. I'll fix that and the issue related to XMLHttpRequest and include them with the next release. Really appreciate the quick feedback and the info you've provided! |
@chrisradek No problem, happy to help. I usually help people migrate to supporting TypeScript definitions, so if you ever need a second pair of eyes you can ping me. See typings/typings#322 (little outdated, but I still help with other repos). If those two things can be fixed, it'd be amazing 😄 @midknight41 Once the definitions here work and are stable, no one should need to rely on DefinitelyTyped anymore. I wouldn't want the developers here getting stuck trying to maintain two repo locations and having to refactor these external module definitions into global definitions for DefinitelyTyped. |
The main thing is making sure the community ends up with the correct definitions (yours) and avoids any kind of collision regardless of how they install it. If I can help, let me know. :-) |
I've created #1228 to fix the issues encountered here. If anyone has time to test it out, I'd love to hear if there are outstanding issues before these can start being used. |
Since #1228 has been merged, I'm closing this issue. Feel free to comment or open up a new issue if you encounter problems with the typescript definitions! |
It seems like it's still an issue, just updated to
The last one is because I'm listening to the |
I'm also seeing similar issues in latest version:
|
@blakeembrey I'll add another PR shortly for adding @MarcusNoble |
I've just taken another look (in another project that i'm working on) and it seems that the |
@MarcusNoble |
Yes. I previously used typings, then used the Is it best to stop using those and update code to use the |
The main benefit to using the typings shipped with the SDK are that the service definitions are updated with each release, and will reflect the version of the SDK you're using. I'll take a look to see how feasible it is to reference those interfaces directly on the service client, without removing them from |
@MarcusNoble |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
The AWS definitions are incorrect in a number of ways and has broken all builds depending on your TypeScript configuration. Issues I run into:
any
XMLHttpRequest
(which is not in the standard definition, fails when you don't include the browser-side definitions with TypeScript)Cannot find type definition file for 'node'.
- relies on@types
which means I can't use the better definitions from Typings or DefinitelyTypedThe text was updated successfully, but these errors were encountered: