This commit is contained in:
Gary Kwok
2024-06-17 18:05:05 +08:00
commit 56f6d03385
105 changed files with 4350 additions and 0 deletions

35
src/types/index.d.ts vendored Normal file
View File

@@ -0,0 +1,35 @@
export interface TAuthor {
id: string;
slug: string;
body: string;
collection: string;
data: {
title: string;
image: string;
description: string;
social: {
facebook: string;
twitter: string;
instagram: string;
}
};
render: () => Promise<{ Content: any }>;
}
export interface TPost {
id: string;
slug: string;
body: string;
collection: string;
data: {
title: string;
description: string;
date: any;
image: string;
authors: string[];
categories: string[];
tags: string[];
draft: boolean;
};
render: () => Promise<{ Content: any }>;
}