UNPKG

@forge42/seo-tools

Version:

Framework agnostic set of helpers designed to help you create, maintain and develop your SEO

1 lines 665 B
{"version":3,"sources":["../../src/structured-data/video.ts"],"sourcesContent":["import type { VideoObject, WithContext } from \"schema-dts\"\n\n/**\n * This helper is used to generate a VideoObject ld+json structured data object.\n * @param video VideoObject object\n * @see https://schema.org/VideoObject\n * @returns Returns a VideoObject object to be used in head via json-ld script tag\n */\nexport const video = (video: VideoObject): WithContext<VideoObject> => {\n\treturn {\n\t\t\"@context\": \"https://schema.org\",\n\t\t...video,\n\t}\n}\n\nexport type { VideoObject }\n"],"mappings":"AAQO,IAAMA,EAASA,IACd,CACN,WAAY,qBACZ,GAAGA,CACJ","names":["video"]}