Skip to content

Commit

Permalink
Bump typescript to ^5.6.2 (#14571)
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: Jose Quintas <[email protected]>
  • Loading branch information
renovate[bot] and JCQuintas authored Oct 1, 2024
1 parent cd363b4 commit 8edc40a
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 73 deletions.
8 changes: 7 additions & 1 deletion docs/scripts/api/buildInterfacesDocumentation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,13 @@ function extractDemos(tagInfo: ts.JSDocTagInfo): { demos?: string } {
}
const demos = tagInfo.text
.map(({ text }) => text.matchAll(/\[(.*)\]\((.*)\)/g).next().value)
.map(([, text, url]) => `<li><a href="${url}">${text}</a></li>`);
.map((match) => {
if (match) {
const [, text, url] = match;
return `<li><a href="${url}">${text}</a></li>`;
}
return '';
});

if (demos.length === 0) {
return {};
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@
"string-replace-loader": "^3.1.0",
"terser-webpack-plugin": "^5.3.10",
"tsx": "^4.19.1",
"typescript": "^5.5.4",
"typescript": "^5.6.2",
"unist-util-visit": "^5.0.0",
"util": "^0.12.5",
"webpack": "^5.95.0",
Expand Down
Loading

0 comments on commit 8edc40a

Please sign in to comment.