UNPKG

@forge42/seo-tools

Version:

Framework agnostic set of helpers designed to help you create, maintain and develop your SEO

1 lines 649 B
{"version":3,"sources":["../../src/structured-data/faq.ts"],"sourcesContent":["import type { FAQPage, WithContext } from \"schema-dts\"\r\n\r\n/**\r\n * This helper is used to generate a FAQPage ld+json structured data object.\r\n * @param faq FAQPage object\r\n * @see https://schema.org/FAQPage\r\n * @returns Returns a FAQPage object to be used in head via json-ld script tag\r\n */\r\nexport const faq = (faq: FAQPage): WithContext<FAQPage> => {\r\n\treturn {\r\n\t\t\"@context\": \"https://schema.org\",\r\n\t\t...faq,\r\n\t}\r\n}\r\nexport type { FAQPage }\r\n"],"mappings":"AAQO,IAAMA,EAAOA,IACZ,CACN,WAAY,qBACZ,GAAGA,CACJ","names":["faq"]}