UNPKG

@forge42/seo-tools

Version:

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

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