Skip to content

Commit ac41025

Browse files
types define for typescript
1 parent cec13d8 commit ac41025

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

utils/types.ts

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import type { ReactNode } from "react";
2+
import type { BaseLayoutProps } from 'fumadocs-ui/layouts/shared';
3+
4+
export interface TypeSocial {
5+
icon: ReactNode; name: string; url: string
6+
}
7+
8+
export interface TypeFAQ {
9+
question: string; answer: string, key: number
10+
}
11+
12+
export interface TypeBlogNav {
13+
name: string; url: string
14+
}
15+
16+
export interface TypeTags{
17+
title: string;
18+
}
19+
20+
export interface HomeLayout extends BaseLayoutProps {
21+
social?: TypeSocial[];
22+
faqs?: TypeFAQ[]
23+
blog_nav?: TypeBlogNav[]
24+
tags?: TypeTags
25+
}

0 commit comments

Comments
 (0)