GitHub

MagentoNavigationTreeTransform

type-alias

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 & Pick<V, 'children'>, magentoCategoryNode: T) => V