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