GitHub

MagentoNavigationTreeTransform

import { MagentoNavigationTreeTransform } from '@daffodil/navigation/driver/magento'

A transform for the Magento driver that can add extra fields or otherwise modify the navigation driver response.

type MagentoNavigationTreeTransform<T extends CategoryNode = CategoryNode, V extends DaffNavigationTree = DaffNavigationTree> = (daffTree: DaffNavigationTree, magentoCategoryNode: T) => V