Skip to content

Commit

Permalink
Update dependency typescript to v5.7.2 (#4940)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Tibor Blenessy <[email protected]>
  • Loading branch information
renovate[bot] and saberduck authored Nov 28, 2024
1 parent 1fdacee commit d67b89f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
100
],
"router:third_party/brick/brick-1.0.1.byob.js": [
337,
877,
1412,
1637,
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
"stylelint": "15.11.0",
"tar": "7.4.3",
"tmp": "0.2.3",
"typescript": "5.6.3",
"typescript": "5.7.2",
"vue-eslint-parser": "9.4.3",
"yaml": "2.6.1"
},
Expand Down
4 changes: 3 additions & 1 deletion packages/jsts/src/rules/S3800/rule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,9 @@ function prettyPrint(type: ts.Type, checker: ts.TypeChecker): string {
}

function isTypedArray(type: ts.Type, checker: ts.TypeChecker) {
return checker.typeToString(type).endsWith('Array');
const typeAsString = checker.typeToString(type);
// Since TS 5.7 typed arrays include the type of the elements in the string, eg. Float32Array<any>
return /.*Array(?:<[^>]*>)?$/.test(typeAsString);
}

function isNullLike(type: ts.Type) {
Expand Down

0 comments on commit d67b89f

Please sign in to comment.