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