-
Notifications
You must be signed in to change notification settings - Fork 580
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
Typescript 3.7.x breaking @aws-sdk/types #1919
Typescript 3.7.x breaking @aws-sdk/types #1919
Comments
This issue would be fixed by using downlevel-dts to create type definition files which support TS 3.4 or later. |
Three PRs which need to be merged before TS 3.4 compatible types can be generated:
Experimental commits are in downlevel-dts branch https://github.com/trivikr/aws-sdk-js-v3/tree/downlevel-dts |
@trivikr I upgraded to 3.4.0 and it still doesn't work - I use TS 3.9.7, while labeled tuples were added in 4.x. It's probably due to this condition: aws-sdk-js-v3/packages/types/package.json Line 29 in 63ad215
If I change it to |
I'll create a separate issue specific to 3.9.7 for tracking. |
Thanks! I can open a PR for the readme. |
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. |
Describe the bug
@aws-sdk/types
declares UserAgentPair.Pairs are not supported in Typescript 3.7.x
https://devblogs.microsoft.com/typescript/announcing-typescript-4-0/#labeled-tuple-elements.
Users running typescript < 4.0.0 cannot correctly get types.
SDK version number
3.3.0
Is the issue in the browser/Node.js/ReactNative?
All
Details of the browser/Node.js/ReactNative version
node v14.15.4
To Reproduce (observed behavior)
The following error is thrown for the code example give below:
package.json
index.ts
tsconfig.json
Expected behavior
No error is thrown when compiling client code with TypeScript version 3.7.x
The text was updated successfully, but these errors were encountered: