GitHub

daffTransformMagentoError

Transforms the passed error according to the lookup in the passed map.

import { daffTransformMagentoError } from '@daffodil/driver/magento'
function daffTransformMagentoError<T extends DaffErrorCodeMap>(
  error: any
  map: T
): DaffError