Files
Metify/src/lib/types.ts

35 lines
821 B
TypeScript

import type { HeadlineNode, ImageAltData } from "@/app/actions";
export interface OpenGraphData {
title: string;
description: string;
image: string | null;
url: string | null;
siteName: string | null;
type: string | null;
}
export interface TwitterData {
card: string | null;
title: string;
description: string;
image: string | null;
site: string | null;
creator: string | null;
}
export interface MetaData {
title: string;
description: string;
image?: string | null;
faq?: { question: string; answer: string }[] | null;
schema?: any[] | null;
headlines?: HeadlineNode[] | null;
keyword?: string | null;
keywordCount?: number | null;
images?: ImageAltData[] | null;
canonical?: string | null;
robots?: string | null;
openGraph?: OpenGraphData;
twitter?: TwitterData;
}