Skip to content

Commit

Permalink
deps: update to typescript 5.0.4 (#15023)
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjclark committed Apr 28, 2023
1 parent f6171e0 commit 726d8b4
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion build/build-cdt-lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ function doModification(modification) {
}

if (removeNode) {
return ts.createNode(ts.SyntaxKind.Unknown);
return ts.factory.createNotEmittedStatement(node);
}

return node;
Expand Down
2 changes: 1 addition & 1 deletion core/legacy/gather/gather-runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ class GatherRunner {
// Add a `bidx=20` query param, eg: https://www.example.com/?bidx=50
const parsedUrl = UrlUtils.isValid(options.requestedUrl) && new URL(options.requestedUrl);
if (options.settings.channel === 'lr' && parsedUrl && parsedUrl.searchParams.has('bidx')) {
const bidxRunCount = parsedUrl.searchParams.get('bidx') || 0;
const bidxRunCount = Number(parsedUrl.searchParams.get('bidx')) || 0;
// Add the first bidx into the new set
const indexes = [baseArtifacts.BenchmarkIndex];
for (let i = 0; i < bidxRunCount; i++) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
"terser": "^5.3.8",
"testdouble": "^3.16.8",
"typed-query-selector": "^2.6.1",
"typescript": "^4.9.4",
"typescript": "^5.0.4",
"wait-for-expect": "^3.0.2",
"webtreemap-cdt": "^3.2.1"
},
Expand Down
2 changes: 1 addition & 1 deletion types/internal/test.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

declare global {
var expect: import('expect').Expect;
type Mock<T, Y> = import('jest-mock').Mock<T, Y>;
type Mock<T, Y extends unknown[]> = import('jest-mock').Mock<T, Y>;
}

declare module 'expect' {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7239,10 +7239,10 @@ typedarray-to-buffer@^3.1.5:
dependencies:
is-typedarray "^1.0.0"

typescript@^4.9.4:
version "4.9.4"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.4.tgz#a2a3d2756c079abda241d75f149df9d561091e78"
integrity sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg==
typescript@^5.0.4:
version "5.0.4"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.0.4.tgz#b217fd20119bd61a94d4011274e0ab369058da3b"
integrity sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==

uglify-js@^3.1.4:
version "3.14.4"
Expand Down

0 comments on commit 726d8b4

Please sign in to comment.