@osdeibi/bucky-seo-react
Version:
React component for managing meta tags, Open Graph, and dynamic JSON-LD
24 lines (23 loc) • 694 B
TypeScript
import type { StructuredData } from "../DynamicHead.types";
/** Un único FAQ: pregunta + respuesta */
export interface FaqQuestion {
"@type": "Question";
/** El texto de la pregunta */
name: string;
/** Respuesta asociada */
acceptedAnswer: {
"@type": "Answer";
text: string;
};
/** (Opcional) Respuestas sugeridas */
suggestedAnswer?: Array<{
"@type": "Answer";
text: string;
}>;
}
/** Props para el FAQPage completo */
export interface FaqPageProps {
mainEntity: FaqQuestion[];
}
/** Generador de JSON-LD para FAQPage según Google Search Central */
export declare function faqPage(opts: FaqPageProps): StructuredData;