UNPKG

@forge42/seo-tools

Version:

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

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