Skip to content

Commit 013dfec

Browse files
authoredNov 6, 2021
chore: update typescript (#908)
BREAKING CHANGE: new typescript minor, caught errors have changed type among other things
1 parent 0a2df96 commit 013dfec

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed
 

‎cli.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ cli
5555
async function main () {
5656
try {
5757
await cli.parse()
58-
} catch (err) {
58+
} catch (/** @type {any} */ err) {
5959
if (cli.parsed && cli.parsed.argv.debug) {
6060
console.error('\n', err)
6161
} else {

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
"strip-json-comments": "^3.1.1",
122122
"tempy": "^1.0.1",
123123
"typedoc": "^0.21.2",
124-
"typescript": "4.3.x",
124+
"typescript": "4.4.x",
125125
"update-notifier": "^5.0.0",
126126
"yargs": "^17.1.1"
127127
},

‎src/test/react-native.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ async function checkAndroidEnv () {
9595
await execa('emulator', ['-help'])
9696
// await execa('sdkmanager')
9797
await execa('avdmanager', ['list'])
98-
} catch (err) {
98+
} catch (/** @type {any} */ err) {
9999
throw new Error(`"Command ${err.path}" is not available, you need to properly setup your android environment.`)
100100
}
101101
}

‎test/lint.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const projectShouldFailLint = async (project) => {
5858
tsRepo: false,
5959
...userConfig.lint
6060
})
61-
} catch (error) {
61+
} catch (/** @type {any} */ error) {
6262
failed = true
6363
expect(error.message).to.contain('Lint errors')
6464
}

0 commit comments

Comments
 (0)
Please sign in to comment.