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