Skip to content

Commit

Permalink
chore(deps): update dependency typescript to v5.8.2 (#1362)
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: Shinigami92 <chrissi92@hotmail.de>
  • Loading branch information
renovate[bot] and Shinigami92 authored Mar 1, 2025
1 parent 348905b commit a5f2d91
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 73 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
"ts-node": "10.9.2",
"tsup": "8.4.0",
"tsx": "4.19.3",
"typescript": "5.7.3",
"typescript": "5.8.2",
"typescript-eslint": "8.25.0",
"vitepress": "1.6.3",
"vitest": "3.0.7"
Expand Down
142 changes: 71 additions & 71 deletions pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion src/utils/toArray.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
* @param item The item to eventually wrap in an array.
*/
export function toArray<T>(item: T | ReadonlyArray<T>): T[] {
return Array.isArray(item) ? [...item] : [item];
return Array.isArray(item) ? [...item] : [item as T];
}

0 comments on commit a5f2d91

Please # to comment.