@forge42/seo-tools
Version:
Framework agnostic set of helpers designed to help you create, maintain and develop your SEO
1 lines • 607 B
Source Map (JSON)
{"version":3,"sources":["../../src/structured-data/qa.ts"],"sourcesContent":["import type { QAPage, WithContext } from \"schema-dts\"\n\n/**\n * This helper is used to generate a QAPage ld+json structured data object.\n * @param qa QAPage object\n * @see https://schema.org/QAPage\n * @returns Returns a QAPage object to be used in head via json-ld script tag\n */\nexport const qa = (qa: QAPage): WithContext<QAPage> => {\n\treturn {\n\t\t\"@context\": \"https://schema.org\",\n\t\t...qa,\n\t}\n}\n\nexport type { QAPage }\n"],"mappings":"AAQO,IAAMA,EAAMA,IACX,CACN,WAAY,qBACZ,GAAGA,CACJ","names":["qa"]}