-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DataTable: rowClass, rowStyle typing defects #5498
DataTable: rowClass, rowStyle typing defects #5498
Comments
Potential duplicate: #5414 |
Also getting the error from typescript when setting rowClass to a function Type '(data: Item) => string' is not assignable to type '(data: any) => object | undefined'.ts-plugin(2322) |
I have the same issue
Isn't particularly helpful as it doesn't provide any idea of what shape |
fix(DataTable): fix rowClass type definition and improve usage documentation for rowClass and rowStyle. Fixes #5498
Describe the bug
3.49.1 => rowClass?: (data: any) => object | string | undefined;
TypeScript threw an error in version 3.50.0.
The expected type comes from property 'rowClass' which is declared here on type 'DataTableProps & VNodeProps & AllowedComponentProps & ComponentCustomProps & Record<string, unknown>'
Reproducer
npx vue-tsc --noEmit --skipLibCheck
PrimeVue version
3.50.0
Vue version
3.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
Chrome/Edge
Steps to reproduce the behavior
npx vue-tsc --noEmit --skipLibCheck
Expected behavior
no such error
The text was updated successfully, but these errors were encountered: