Skip to content

Commit 63ad215

Browse files
authored
feat: use downlevel-dts to generate TS 3.4 compatible types (#1943)
1 parent 878617a commit 63ad215

File tree

344 files changed

+3250
-253
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

344 files changed

+3250
-253
lines changed

Diff for: clients/client-accessanalyzer/package.json

+10-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"test": "exit 0",
1414
"build:cjs": "tsc -p tsconfig.json",
1515
"build:es": "tsc -p tsconfig.es.json",
16-
"build": "yarn build:cjs && yarn build:es"
16+
"build": "yarn build:cjs && yarn build:es",
17+
"postbuild": "downlevel-dts types types/ts3.4"
1718
},
1819
"main": "./dist/cjs/index.js",
1920
"types": "./types/index.d.ts",
@@ -63,6 +64,7 @@
6364
"@aws-sdk/client-documentation-generator": "3.1.0",
6465
"@types/node": "^12.7.5",
6566
"@types/uuid": "^3.0.0",
67+
"downlevel-dts": "0.7.0",
6668
"jest": "^26.1.0",
6769
"rimraf": "^3.0.0",
6870
"typedoc": "^0.19.2",
@@ -71,6 +73,13 @@
7173
"engines": {
7274
"node": ">=10.0.0"
7375
},
76+
"typesVersions": {
77+
"<3.9": {
78+
"types/*": [
79+
"types/ts3.4/*"
80+
]
81+
}
82+
},
7483
"author": {
7584
"name": "AWS SDK for JavaScript Team",
7685
"url": "https://aws.amazon.com/javascript/"

Diff for: clients/client-acm-pca/package.json

+10-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"test": "exit 0",
1414
"build:cjs": "tsc -p tsconfig.json",
1515
"build:es": "tsc -p tsconfig.es.json",
16-
"build": "yarn build:cjs && yarn build:es"
16+
"build": "yarn build:cjs && yarn build:es",
17+
"postbuild": "downlevel-dts types types/ts3.4"
1718
},
1819
"main": "./dist/cjs/index.js",
1920
"types": "./types/index.d.ts",
@@ -62,6 +63,7 @@
6263
"devDependencies": {
6364
"@aws-sdk/client-documentation-generator": "3.1.0",
6465
"@types/node": "^12.7.5",
66+
"downlevel-dts": "0.7.0",
6567
"jest": "^26.1.0",
6668
"rimraf": "^3.0.0",
6769
"typedoc": "^0.19.2",
@@ -70,6 +72,13 @@
7072
"engines": {
7173
"node": ">=10.0.0"
7274
},
75+
"typesVersions": {
76+
"<3.9": {
77+
"types/*": [
78+
"types/ts3.4/*"
79+
]
80+
}
81+
},
7382
"author": {
7483
"name": "AWS SDK for JavaScript Team",
7584
"url": "https://aws.amazon.com/javascript/"

Diff for: clients/client-acm/package.json

+10-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"test": "exit 0",
1414
"build:cjs": "tsc -p tsconfig.json",
1515
"build:es": "tsc -p tsconfig.es.json",
16-
"build": "yarn build:cjs && yarn build:es"
16+
"build": "yarn build:cjs && yarn build:es",
17+
"postbuild": "downlevel-dts types types/ts3.4"
1718
},
1819
"main": "./dist/cjs/index.js",
1920
"types": "./types/index.d.ts",
@@ -62,6 +63,7 @@
6263
"devDependencies": {
6364
"@aws-sdk/client-documentation-generator": "3.1.0",
6465
"@types/node": "^12.7.5",
66+
"downlevel-dts": "0.7.0",
6567
"jest": "^26.1.0",
6668
"rimraf": "^3.0.0",
6769
"typedoc": "^0.19.2",
@@ -70,6 +72,13 @@
7072
"engines": {
7173
"node": ">=10.0.0"
7274
},
75+
"typesVersions": {
76+
"<3.9": {
77+
"types/*": [
78+
"types/ts3.4/*"
79+
]
80+
}
81+
},
7382
"author": {
7483
"name": "AWS SDK for JavaScript Team",
7584
"url": "https://aws.amazon.com/javascript/"

Diff for: clients/client-alexa-for-business/package.json

+10-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"test": "exit 0",
1414
"build:cjs": "tsc -p tsconfig.json",
1515
"build:es": "tsc -p tsconfig.es.json",
16-
"build": "yarn build:cjs && yarn build:es"
16+
"build": "yarn build:cjs && yarn build:es",
17+
"postbuild": "downlevel-dts types types/ts3.4"
1718
},
1819
"main": "./dist/cjs/index.js",
1920
"types": "./types/index.d.ts",
@@ -63,6 +64,7 @@
6364
"@aws-sdk/client-documentation-generator": "3.1.0",
6465
"@types/node": "^12.7.5",
6566
"@types/uuid": "^3.0.0",
67+
"downlevel-dts": "0.7.0",
6668
"jest": "^26.1.0",
6769
"rimraf": "^3.0.0",
6870
"typedoc": "^0.19.2",
@@ -71,6 +73,13 @@
7173
"engines": {
7274
"node": ">=10.0.0"
7375
},
76+
"typesVersions": {
77+
"<3.9": {
78+
"types/*": [
79+
"types/ts3.4/*"
80+
]
81+
}
82+
},
7483
"author": {
7584
"name": "AWS SDK for JavaScript Team",
7685
"url": "https://aws.amazon.com/javascript/"

Diff for: clients/client-amplify/package.json

+10-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"test": "exit 0",
1414
"build:cjs": "tsc -p tsconfig.json",
1515
"build:es": "tsc -p tsconfig.es.json",
16-
"build": "yarn build:cjs && yarn build:es"
16+
"build": "yarn build:cjs && yarn build:es",
17+
"postbuild": "downlevel-dts types types/ts3.4"
1718
},
1819
"main": "./dist/cjs/index.js",
1920
"types": "./types/index.d.ts",
@@ -61,6 +62,7 @@
6162
"devDependencies": {
6263
"@aws-sdk/client-documentation-generator": "3.1.0",
6364
"@types/node": "^12.7.5",
65+
"downlevel-dts": "0.7.0",
6466
"jest": "^26.1.0",
6567
"rimraf": "^3.0.0",
6668
"typedoc": "^0.19.2",
@@ -69,6 +71,13 @@
6971
"engines": {
7072
"node": ">=10.0.0"
7173
},
74+
"typesVersions": {
75+
"<3.9": {
76+
"types/*": [
77+
"types/ts3.4/*"
78+
]
79+
}
80+
},
7281
"author": {
7382
"name": "AWS SDK for JavaScript Team",
7483
"url": "https://aws.amazon.com/javascript/"

Diff for: clients/client-amplifybackend/package.json

+10-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"test": "yarn build && jest --coverage --passWithNoTests",
1414
"build:cjs": "tsc -p tsconfig.json",
1515
"build:es": "tsc -p tsconfig.es.json",
16-
"build": "yarn build:cjs && yarn build:es"
16+
"build": "yarn build:cjs && yarn build:es",
17+
"postbuild": "downlevel-dts types types/ts3.4"
1718
},
1819
"main": "./dist/cjs/index.js",
1920
"types": "./types/index.d.ts",
@@ -61,6 +62,7 @@
6162
"devDependencies": {
6263
"@aws-sdk/client-documentation-generator": "3.1.0",
6364
"@types/node": "^12.7.5",
65+
"downlevel-dts": "0.7.0",
6466
"jest": "^26.1.0",
6567
"rimraf": "^3.0.0",
6668
"typedoc": "^0.19.2",
@@ -69,6 +71,13 @@
6971
"engines": {
7072
"node": ">=10.0.0"
7173
},
74+
"typesVersions": {
75+
"<3.9": {
76+
"types/*": [
77+
"types/ts3.4/*"
78+
]
79+
}
80+
},
7281
"author": {
7382
"name": "AWS SDK for JavaScript Team",
7483
"url": "https://aws.amazon.com/javascript/"

Diff for: clients/client-api-gateway/package.json

+10-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"test": "exit 0",
1414
"build:cjs": "tsc -p tsconfig.json",
1515
"build:es": "tsc -p tsconfig.es.json",
16-
"build": "yarn build:cjs && yarn build:es"
16+
"build": "yarn build:cjs && yarn build:es",
17+
"postbuild": "downlevel-dts types types/ts3.4"
1718
},
1819
"main": "./dist/cjs/index.js",
1920
"types": "./types/index.d.ts",
@@ -62,6 +63,7 @@
6263
"devDependencies": {
6364
"@aws-sdk/client-documentation-generator": "3.1.0",
6465
"@types/node": "^12.7.5",
66+
"downlevel-dts": "0.7.0",
6567
"jest": "^26.1.0",
6668
"rimraf": "^3.0.0",
6769
"typedoc": "^0.19.2",
@@ -70,6 +72,13 @@
7072
"engines": {
7173
"node": ">=10.0.0"
7274
},
75+
"typesVersions": {
76+
"<3.9": {
77+
"types/*": [
78+
"types/ts3.4/*"
79+
]
80+
}
81+
},
7382
"author": {
7483
"name": "AWS SDK for JavaScript Team",
7584
"url": "https://aws.amazon.com/javascript/"

Diff for: clients/client-apigatewaymanagementapi/package.json

+10-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"test": "exit 0",
1414
"build:cjs": "tsc -p tsconfig.json",
1515
"build:es": "tsc -p tsconfig.es.json",
16-
"build": "yarn build:cjs && yarn build:es"
16+
"build": "yarn build:cjs && yarn build:es",
17+
"postbuild": "downlevel-dts types types/ts3.4"
1718
},
1819
"main": "./dist/cjs/index.js",
1920
"types": "./types/index.d.ts",
@@ -61,6 +62,7 @@
6162
"devDependencies": {
6263
"@aws-sdk/client-documentation-generator": "3.1.0",
6364
"@types/node": "^12.7.5",
65+
"downlevel-dts": "0.7.0",
6466
"jest": "^26.1.0",
6567
"rimraf": "^3.0.0",
6668
"typedoc": "^0.19.2",
@@ -69,6 +71,13 @@
6971
"engines": {
7072
"node": ">=10.0.0"
7173
},
74+
"typesVersions": {
75+
"<3.9": {
76+
"types/*": [
77+
"types/ts3.4/*"
78+
]
79+
}
80+
},
7281
"author": {
7382
"name": "AWS SDK for JavaScript Team",
7483
"url": "https://aws.amazon.com/javascript/"

Diff for: clients/client-apigatewayv2/package.json

+10-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"test": "exit 0",
1414
"build:cjs": "tsc -p tsconfig.json",
1515
"build:es": "tsc -p tsconfig.es.json",
16-
"build": "yarn build:cjs && yarn build:es"
16+
"build": "yarn build:cjs && yarn build:es",
17+
"postbuild": "downlevel-dts types types/ts3.4"
1718
},
1819
"main": "./dist/cjs/index.js",
1920
"types": "./types/index.d.ts",
@@ -61,6 +62,7 @@
6162
"devDependencies": {
6263
"@aws-sdk/client-documentation-generator": "3.1.0",
6364
"@types/node": "^12.7.5",
65+
"downlevel-dts": "0.7.0",
6466
"jest": "^26.1.0",
6567
"rimraf": "^3.0.0",
6668
"typedoc": "^0.19.2",
@@ -69,6 +71,13 @@
6971
"engines": {
7072
"node": ">=10.0.0"
7173
},
74+
"typesVersions": {
75+
"<3.9": {
76+
"types/*": [
77+
"types/ts3.4/*"
78+
]
79+
}
80+
},
7281
"author": {
7382
"name": "AWS SDK for JavaScript Team",
7483
"url": "https://aws.amazon.com/javascript/"

Diff for: clients/client-app-mesh/package.json

+10-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"test": "exit 0",
1414
"build:cjs": "tsc -p tsconfig.json",
1515
"build:es": "tsc -p tsconfig.es.json",
16-
"build": "yarn build:cjs && yarn build:es"
16+
"build": "yarn build:cjs && yarn build:es",
17+
"postbuild": "downlevel-dts types types/ts3.4"
1718
},
1819
"main": "./dist/cjs/index.js",
1920
"types": "./types/index.d.ts",
@@ -63,6 +64,7 @@
6364
"@aws-sdk/client-documentation-generator": "3.1.0",
6465
"@types/node": "^12.7.5",
6566
"@types/uuid": "^3.0.0",
67+
"downlevel-dts": "0.7.0",
6668
"jest": "^26.1.0",
6769
"rimraf": "^3.0.0",
6870
"typedoc": "^0.19.2",
@@ -71,6 +73,13 @@
7173
"engines": {
7274
"node": ">=10.0.0"
7375
},
76+
"typesVersions": {
77+
"<3.9": {
78+
"types/*": [
79+
"types/ts3.4/*"
80+
]
81+
}
82+
},
7483
"author": {
7584
"name": "AWS SDK for JavaScript Team",
7685
"url": "https://aws.amazon.com/javascript/"

Diff for: clients/client-appconfig/package.json

+10-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"test": "exit 0",
1414
"build:cjs": "tsc -p tsconfig.json",
1515
"build:es": "tsc -p tsconfig.es.json",
16-
"build": "yarn build:cjs && yarn build:es"
16+
"build": "yarn build:cjs && yarn build:es",
17+
"postbuild": "downlevel-dts types types/ts3.4"
1718
},
1819
"main": "./dist/cjs/index.js",
1920
"types": "./types/index.d.ts",
@@ -61,6 +62,7 @@
6162
"devDependencies": {
6263
"@aws-sdk/client-documentation-generator": "3.1.0",
6364
"@types/node": "^12.7.5",
65+
"downlevel-dts": "0.7.0",
6466
"jest": "^26.1.0",
6567
"rimraf": "^3.0.0",
6668
"typedoc": "^0.19.2",
@@ -69,6 +71,13 @@
6971
"engines": {
7072
"node": ">=10.0.0"
7173
},
74+
"typesVersions": {
75+
"<3.9": {
76+
"types/*": [
77+
"types/ts3.4/*"
78+
]
79+
}
80+
},
7281
"author": {
7382
"name": "AWS SDK for JavaScript Team",
7483
"url": "https://aws.amazon.com/javascript/"

Diff for: clients/client-appflow/package.json

+10-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"test": "yarn build && jest --coverage --passWithNoTests",
1414
"build:cjs": "tsc -p tsconfig.json",
1515
"build:es": "tsc -p tsconfig.es.json",
16-
"build": "yarn build:cjs && yarn build:es"
16+
"build": "yarn build:cjs && yarn build:es",
17+
"postbuild": "downlevel-dts types types/ts3.4"
1718
},
1819
"main": "./dist/cjs/index.js",
1920
"types": "./types/index.d.ts",
@@ -61,6 +62,7 @@
6162
"devDependencies": {
6263
"@aws-sdk/client-documentation-generator": "3.1.0",
6364
"@types/node": "^12.7.5",
65+
"downlevel-dts": "0.7.0",
6466
"jest": "^26.1.0",
6567
"rimraf": "^3.0.0",
6668
"typedoc": "^0.19.2",
@@ -69,6 +71,13 @@
6971
"engines": {
7072
"node": ">=10.0.0"
7173
},
74+
"typesVersions": {
75+
"<3.9": {
76+
"types/*": [
77+
"types/ts3.4/*"
78+
]
79+
}
80+
},
7281
"author": {
7382
"name": "AWS SDK for JavaScript Team",
7483
"url": "https://aws.amazon.com/javascript/"

0 commit comments

Comments
 (0)