atom-nextjs
Version:
Build a blog in NextJS using components, TailwindCSS, and Atom CMS.
34 lines (33 loc) • 710 B
TypeScript
export declare type Post = {
createdAt: Date;
id: string;
updatedAt: Date;
title: string;
author: string;
body: string;
image: string | null;
creator_uid: string;
keywords?: string[];
teaser: string;
};
export declare type ClientPost = {
image?: string | null;
id: string;
teaser: string;
title: string;
createdAt: Date;
updatedAt: Date;
author: string;
};
export declare type ClientProject = {
title: string;
posts: ClientPost[];
id: string;
updatedAt: Date;
createdAt: Date;
};
export declare type ApiResponse<T = null> = {
response: T;
success: boolean;
message: string;
};