26 lines
471 B
TypeScript
26 lines
471 B
TypeScript
export type ContentList = (Project | Diary)[];
|
|
|
|
export type ContentType = "project" | "diary";
|
|
|
|
interface Content {
|
|
type: "project" | "diary";
|
|
name: string;
|
|
desc: string[];
|
|
short_desc: string;
|
|
more?: string;
|
|
repo?: string;
|
|
title: string;
|
|
}
|
|
|
|
export interface Project extends Content {
|
|
type: "project";
|
|
}
|
|
|
|
export interface Diary extends Content {
|
|
type: "diary";
|
|
entries: {
|
|
title: string;
|
|
filename: string;
|
|
}[];
|
|
}
|