Skip to content

Commit 231bdce

Browse files
committed
Cast JSON file to target type
1 parent ddf635e commit 231bdce

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"scripts": {
55
"dev": "vite",
66
"build": "tsc && vite build",
7-
"preview": "vite preview"
7+
"preview": "vite preview",
8+
"typecheck": "tsc"
89
},
910
"dependencies": {
1011
"@mdi/react": "^1.4.0",

src/links.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export interface Links {
5353
}
5454

5555
export const links: Links = {
56-
items: linksData.items,
56+
items: linksData.items as LinkGroup[],
5757
}
5858

5959
export function useAllLinks(): LinkItem[] {

0 commit comments

Comments
 (0)