Table
: Untyped value
input
#17761
Labels
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Describe the bug
Currently the input
value
has the typeany
. Related events are also typed withany
.So it is possible to wrongly type event handlers and PrimeNGs Table Api is not supportive.
As user I would like to have a more typed value, because it makes the code more predictable and reduces runtime errors. It helps catch errors at compile time, making the code easier to maintain.
Pull Request Link
No response
Reproducer
https://tdjup3md.stackblitz.io
Environment
MacOS
Angular version
19.1.7
PrimeNG version
v19
Node version
22.13.0
Browser(s)
Chrome
Steps to reproduce the behavior
See Stackblitz example
Product[]
selectionChange
which expects a different type likeBar
Expected behavior
A type error occurs if the types are incompatible
The text was updated successfully, but these errors were encountered: