Skip to content

Commit 5af7a3b

Browse files
committed
feat: add basic types to init the project
1 parent b37407f commit 5af7a3b

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

types/index.d.ts

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
3+
export type NavItem = {
4+
title: string
5+
href: string
6+
disabled?: boolean
7+
}
8+
9+
export type MainNavItem = NavItem
10+
11+
12+
export type SiteConfig = {
13+
name: string
14+
description: string
15+
url: string
16+
ogImage: string
17+
links: {
18+
twitter: string
19+
github: string
20+
}
21+
}
22+
23+
export type LandingConfig = {
24+
mainNav: MainNavItem[]
25+
}

types/nav.ts

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export interface NavItem {
2+
title: string
3+
href?: string
4+
disabled?: boolean
5+
external?: boolean
6+
}
7+

0 commit comments

Comments
 (0)