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