25 lines
864 B
TypeScript
25 lines
864 B
TypeScript
import type { CF_ContentType } from "src/@types/Contentful_ContentType.enum";
|
|
import type { CF_Content } from "./Contentful_Content";
|
|
import type { CF_SEO } from "src/@types/Contentful_SEO";
|
|
import type { CF_ComponentLayout } from "src/@types/Contentful_Layout";
|
|
import type { CF_PostEntrySkeleton } from "src/@types/Contentful_Post";
|
|
import type { CF_TagSkeleton } from "src/@types/Contentful_Tag";
|
|
import type { Document } from "@contentful/rich-text-types";
|
|
|
|
export interface CF_Post_Overview extends CF_Content, CF_SEO {
|
|
id: string;
|
|
headline: string;
|
|
text: Document;
|
|
layout: CF_ComponentLayout;
|
|
allPosts: boolean;
|
|
filterByTag: CF_TagSkeleton[];
|
|
posts: CF_PostEntrySkeleton[];
|
|
numberItems: number;
|
|
design?: "cards" | "list";
|
|
}
|
|
|
|
export type CF_Post_OverviewEntrySkeleton = {
|
|
contentTypeId: CF_ContentType.post;
|
|
fields: CF_Post_Overview;
|
|
};
|