Data Table: groupRowsBy, prop type error #3450
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
When give string to groupRowsBy prop in Data Table it gives this error:
Type 'string' is not assignable to type '(field: string) => string | object | string[]'.
Reproducer
https://codesandbox.io/s/cool-leaf-jzd2w6?file=/src/App.vue:1093-1097
PrimeVue version
3.21.0
Vue version
3.x
Language
TypeScript
Build / Runtime
Vue CLI App
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
Type 'string' is not assignable to type '(field: string) => string | object | string[]'.
needs to add bracelets to function type like this;
Type 'string' is not assignable to type '((field: string) => string) | object | string[]'.
The text was updated successfully, but these errors were encountered: