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