Skip to content

Commit 837f4a4

Browse files
authored
Update TypeScript to the latest stable version (#47)
TypeScript has been updated to the latest stable version. Additional TypeScript options added in these versions have been migrated into the `tsconfig.json` from the MetaMask module template. One option was kept back for now: `noUncheckedIndexedAccess`. This option resulted in too many errors, so will be attempted in a separate PR. The range was updated to use `~` because TypeScript doesn't follow SemVer; their minor releases can include breaking changes.
1 parent a2c820e commit 837f4a4

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"stdio-mock": "^1.2.0",
6969
"ts-jest": "^29.0.3",
7070
"ts-node": "^10.7.0",
71-
"typescript": "^4.2.4"
71+
"typescript": "~4.8.4"
7272
},
7373
"packageManager": "[email protected]",
7474
"engines": {

tsconfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
{
22
"compilerOptions": {
33
"esModuleInterop": true,
4+
"exactOptionalPropertyTypes": true,
45
"forceConsistentCasingInFileNames": true,
56
"lib": ["ES2020"],
67
"module": "CommonJS",
78
"moduleResolution": "node",
89
"noEmit": true,
10+
"noErrorTruncation": true,
911
"strict": true,
1012
"target": "es2017"
1113
},

yarn.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,7 @@ __metadata:
933933
stdio-mock: ^1.2.0
934934
ts-jest: ^29.0.3
935935
ts-node: ^10.7.0
936-
typescript: ^4.2.4
936+
typescript: ~4.8.4
937937
which: ^2.0.2
938938
yaml: ^2.1.1
939939
yargs: ^17.5.1
@@ -6060,23 +6060,23 @@ __metadata:
60606060
languageName: node
60616061
linkType: hard
60626062

6063-
"typescript@npm:^4.2.4":
6064-
version: 4.7.4
6065-
resolution: "typescript@npm:4.7.4"
6063+
"typescript@npm:~4.8.4":
6064+
version: 4.8.4
6065+
resolution: "typescript@npm:4.8.4"
60666066
bin:
60676067
tsc: bin/tsc
60686068
tsserver: bin/tsserver
6069-
checksum: 5750181b1cd7e6482c4195825547e70f944114fb47e58e4aa7553e62f11b3f3173766aef9c281783edfd881f7b8299cf35e3ca8caebe73d8464528c907a164df
6069+
checksum: 3e4f061658e0c8f36c820802fa809e0fd812b85687a9a2f5430bc3d0368e37d1c9605c3ce9b39df9a05af2ece67b1d844f9f6ea8ff42819f13bcb80f85629af0
60706070
languageName: node
60716071
linkType: hard
60726072

6073-
"typescript@patch:typescript@^4.2.4#~builtin<compat/typescript>":
6074-
version: 4.7.4
6075-
resolution: "typescript@patch:typescript@npm%3A4.7.4#~builtin<compat/typescript>::version=4.7.4&hash=7ad353"
6073+
"typescript@patch:typescript@~4.8.4#~builtin<compat/typescript>":
6074+
version: 4.8.4
6075+
resolution: "typescript@patch:typescript@npm%3A4.8.4#~builtin<compat/typescript>::version=4.8.4&hash=7ad353"
60766076
bin:
60776077
tsc: bin/tsc
60786078
tsserver: bin/tsserver
6079-
checksum: 9096d8f6c16cb80ef3bf96fcbbd055bf1c4a43bd14f3b7be45a9fbe7ada46ec977f604d5feed3263b4f2aa7d4c7477ce5f9cd87de0d6feedec69a983f3a4f93e
6079+
checksum: 563a0ef47abae6df27a9a3ab38f75fc681f633ccf1a3502b1108e252e187787893de689220f4544aaf95a371a4eb3141e4a337deb9895de5ac3c1ca76430e5f0
60806080
languageName: node
60816081
linkType: hard
60826082

0 commit comments

Comments
 (0)