Create Blog types
cgen-148372bec14342dbb102383b90298fcc
This commit is contained in:
parent
57b4f71861
commit
f74501f06e
1 changed files with 21 additions and 0 deletions
21
client/components/blog/types.ts
Normal file
21
client/components/blog/types.ts
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
export interface BlogPost {
|
||||||
|
id?: string | number;
|
||||||
|
slug: string;
|
||||||
|
title: string;
|
||||||
|
excerpt?: string | null;
|
||||||
|
author?: string | null;
|
||||||
|
date?: string | null;
|
||||||
|
readTime?: string | null;
|
||||||
|
category?: string | null;
|
||||||
|
image?: string | null;
|
||||||
|
likes?: number | null;
|
||||||
|
comments?: number | null;
|
||||||
|
trending?: boolean;
|
||||||
|
body?: string | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface BlogCategory {
|
||||||
|
id: string;
|
||||||
|
name: string;
|
||||||
|
count: number;
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue