UNPKG

@forge42/seo-tools

Version:

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

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