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