Bitwise operator used in passthorugh/tailwind/index.js instead of logical operator #4415
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
In
/components/lib/passthrough/tailwind/index.js
in lines 771 - 775 bitwise & operator is used instead of logical && operator.I believe this is a typo as also everywhere else in the file logical operators are used.
When trying to create custom button styling options, bitwise operator results in typescript error
The '&' operator is not allowed for boolean types. Consider using '&&' instead.
.I was not able to import
PrimeVuePTOptions
type in sandbox, therefore I did not add reproducer.The proposed solution is to update bitwise & operator to logical && operator in the lines mentioned above.
Reproducer
no reproducer
PrimeVue version
3.34.0
Vue version
3.x
Language
TypeScript
Build / Runtime
Vue CLI App
Browser(s)
No response
Steps to reproduce the behavior
Create file e.g.
example.ts
:Expected behavior
No typescript error.
The text was updated successfully, but these errors were encountered: