Typing for QTable @request #13960
-
I tried to implement "Server side pagination, filter and sorting" sample in Typescript. I used
This is the error that TS reported:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
import type { QTableProps } from 'quasar';
const onRequest: QTableProps['onRequest'] = ({ pagination, filter, getCellValue }) => {
// ...
} |
Beta Was this translation helpful? Give feedback.
-
This helped me too, even though what I was really looking for was the use cases/examples for I ended up asking a Q of my own about this. |
Beta Was this translation helpful? Give feedback.
QTableProps['onRequest']
type is for the function itself, not just for its parameter. The correct way is to do this: