Replies: 2 comments 1 reply
-
Not sure what you are trying to achieve by just returning |
Beta Was this translation helpful? Give feedback.
-
@Haroenv I believe I’m facing a similar issue when using the nuxt-swiftsearch module by @Rigo-m. I’m trying to pass a custom component that requires a different structure for the items array. Here’s an example:
However, I encountered this error because the transformItems property always expects the same structure for the transformed items:
It seems that the transformItems function must return an array of the type RefinementListItem, but I need to use a custom structure (Size[]). Do you have any recommendations for handling this use case, or is there a workaround to make this work with a custom items array structure? |
Beta Was this translation helpful? Give feedback.
-
If I want to pass a function like (items => items.map(item => item.someProperty)) it fails on me, because the return type from transform items except TItem to be returned as it was. Is this correct?
Beta Was this translation helpful? Give feedback.
All reactions