We code better now
This commit is contained in:
25
lib/content/types.ts
Normal file
25
lib/content/types.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
export type ContentList = (Project|Diary)[];
|
||||
|
||||
export type ContentType = "project" | "diary";
|
||||
|
||||
export interface Project {
|
||||
type: "project";
|
||||
name: string;
|
||||
desc: string[];
|
||||
short_desc: string;
|
||||
more?: string;
|
||||
repo?: string;
|
||||
}
|
||||
|
||||
export interface Diary {
|
||||
type: "diary";
|
||||
name: string;
|
||||
desc: string[];
|
||||
short_desc: string;
|
||||
more?: string;
|
||||
repo?: string;
|
||||
entries: {
|
||||
title: string;
|
||||
filename: string;
|
||||
}[];
|
||||
}
|
||||
Reference in New Issue
Block a user