@forge42/seo-tools
Version:
Framework agnostic set of helpers designed to help you create, maintain and develop your SEO
1 lines • 778 B
Source Map (JSON)
{"version":3,"sources":["../../src/structured-data/course.ts"],"sourcesContent":["import type { Course, WithContext } from \"schema-dts\"\r\n\r\n/**\r\n * This helper is used to generate a course ld+json structured data object.\r\n *\r\n *\r\n * Find more information about the course schema here:\r\n *\r\n *\r\n * https://developers.google.com/search/docs/appearance/structured-data/course\r\n * @param course Course object\r\n * @returns Course object to be used in head via json-ld script tag\r\n */\r\nexport const course = (course: Course): WithContext<Course> => {\r\n\treturn {\r\n\t\t\"@context\": \"https://schema.org\",\r\n\t\t...course,\r\n\t}\r\n}\r\n\r\nexport type { Course }\r\n"],"mappings":"AAaO,IAAMA,EAAUA,IACf,CACN,WAAY,qBACZ,GAAGA,CACJ","names":["course"]}