-
Notifications
You must be signed in to change notification settings - Fork 671
Closed
smithy-lang/smithy-typescript
#269Labels
bugThis issue is a bug.This issue is a bug.
Description
Describe the bug
Refs: #1919
The issue #1919 was fixed not fixed for 3.9.7
Your environment
SDK version number
@aws-sdk/client-s3@3.4.0
typescript@3.9.7
Is the issue in the browser/Node.js/ReactNative?
TypeScript build stage for applicaton
Details of the browser/Node.js/ReactNative version
N/A
Steps to reproduce
package.json
{
"name": "ts-3.9-test",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"scripts": {
"build": "tsc"
},
"devDependencies": {
"@types/node": "^14.14.22",
"typescript": "3.9.7"
},
"dependencies": {
"@aws-sdk/client-s3": "3.4.0"
}
}index.ts
import { S3 } from "@aws-sdk/client-s3";
(async () => {
const region = "us-west-2";
const client = new S3({ region });
await client.listBuckets({});
})();tsconfig.json
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"strict": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true
}
}Observed behavior
The following error is thrown for the code example give below:
yarn run v1.22.10
$ tsc
node_modules/@aws-sdk/types/types/util.d.ts:92:42 - error TS1005: ',' expected.
92 export declare type UserAgentPair = [name: string, version?: string];
~
node_modules/@aws-sdk/types/types/util.d.ts:92:60 - error TS1005: ',' expected.
92 export declare type UserAgentPair = [name: string, version?: string];
~
Found 2 errors.
error Command failed with exit code 2.Expected behavior
No error is thrown when compiling client code with TypeScript version 3.9.x
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugThis issue is a bug.This issue is a bug.