UNPKG

@forge42/seo-tools

Version:

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

1 lines 726 B
{"version":3,"sources":["../../src/structured-data/item-list.ts"],"sourcesContent":["import type { ItemList, WithContext } from \"schema-dts\"\n\n/**\n * This helper is used to generate an item list ld+json structured data object.\n *\n *\n * Find more information about the item list schema here:\n *\n *\n * @see https://schema.org/ItemList\n * @param itemList ItemList object\n * @returns ItemList object to be used in head via json-ld script tag\n */\nexport const itemList = (itemList: ItemList): WithContext<ItemList> => {\n\treturn {\n\t\t\"@context\": \"https://schema.org\",\n\t\t...itemList,\n\t}\n}\n\nexport type { ItemList }\n"],"mappings":"AAaO,IAAMA,EAAYA,IACjB,CACN,WAAY,qBACZ,GAAGA,CACJ","names":["itemList"]}