DataTable "rows" prop type #3353
Unanswered
homayounKheiri
asked this question in
PrimeVue
Replies: 1 comment 1 reply
-
Hello @homayounKheiri. The rows prop has a number type, which represents the number of rows to display per page |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I'm using DataTable with paginator prop, But I have a typescript error about "rows" prop.
my code:
and error of
rows
prop:Type 'number' is not assignable to type 'TUser[] & number'. Type 'number' is not assignable to type 'TUser[]'.
Shouldn't the
rows
type be a number? How can I resolve this error?Beta Was this translation helpful? Give feedback.
All reactions