v1
This commit is contained in:
35
src/types/index.d.ts
vendored
Normal file
35
src/types/index.d.ts
vendored
Normal 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 }>;
|
||||
}
|
||||
Reference in New Issue
Block a user