@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/product.ts"],"sourcesContent":["import type { Product, WithContext } from \"schema-dts\"\n\n/**\n * This helper is used to generate a Product ld+json structured data object.\n * @param product Product object\n * @see https://schema.org/Product\n * @returns Returns a Product object to be used in head via json-ld script tag\n */\nexport const product = (product: Product): WithContext<Product> => {\n\treturn {\n\t\t\"@context\": \"https://schema.org\",\n\t\t...product,\n\t}\n}\n\nexport type { Product }\n"],"mappings":"AAQO,IAAMA,EAAWA,IAChB,CACN,WAAY,qBACZ,GAAGA,CACJ","names":["product"]}