p-autocomplete: optionLabel input has wrong type #14468
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
The documentation for
optionLabel
inp-autocomplete
says:But this is not apparent in the type, which is only
string
. If I want to pass a getter function, I have to use$any
otherwise I get a compile error in the template.Hence the type should be changed to
string | (item: any) => string
.Environment
See versions below
Reproducer
No response
Angular version
17.0.6
PrimeNG version
17.2.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.18.0
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: