UNPKG

@forge42/seo-tools

Version:

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

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