Skip to content

Commit ee5efb5

Browse files
committed
Update TypeScript
1 parent 039a336 commit ee5efb5

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,6 @@
5252
"targz": "^1.0.1",
5353
"ts-node": "^7.0.1",
5454
"tslint": "^5.20.1",
55-
"typescript": "~2.2.2"
55+
"typescript": "^3.8.2"
5656
}
5757
}

src/after-copy-insert-server.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ export = async function (
3131

3232
const assetRegex = new RegExp(`httptoolkit-server-${serverVersion}-${platform}-${arch}.tar.gz`);
3333

34-
const headers = process.env.GITHUB_TOKEN ? { Authorization: `token ${process.env.GITHUB_TOKEN}` } : {}
34+
const headers: { Authorization: string } | {} = process.env.GITHUB_TOKEN
35+
? { Authorization: `token ${process.env.GITHUB_TOKEN}` }
36+
: {}
3537

3638
const response = await fetch(
3739
'https://api.github.com/repos/httptoolkit/httptoolkit-server/releases',

src/menu.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ function fixAccelerators(menuTemplates: MenuItemConstructorOptions[]): MenuItemC
115115
if (Array.isArray(submenu)) {
116116
template.submenu = fixAccelerators(submenu);
117117
} else {
118-
template.submenu = fixAccelerators([submenu]);
118+
template.submenu = fixAccelerators([submenu as MenuItemConstructorOptions]);
119119
}
120120
}
121121

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"module": "commonjs",
1717
"moduleResolution": "node",
1818
"pretty": true,
19-
"target": "es2015",
19+
"target": "ES2015",
2020
"jsx": "react"
2121
},
2222
"formatCodeOptions": {

0 commit comments

Comments
 (0)