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