Quasar plugin options allow partial directives list #17554
Labels
area/typescript
bug/2-confirmed
We have reproduce the problem and confirmed that this is a bug.
flavour/vite-plugin
Bugs related to Vite usage with Quasar
kind/bug 🐞
Qv2 🔝
Quasar v2 issues
What happened?
Kind of a continuation of #17466 - and the suggested solution #17466 (comment).
When registering directives for global usage, TypeScript complains when we only need to register some of the directives Quasar has. It doesn't make sense that you can't register a single directive for global usage.
TypeScript gives the following explanation:
Type '{ vClosePopup: ClosePopup; }' is missing the following properties from type 'QuasarDirectives': vIntersection, vMorph, vMutation, vRipple, and 6 more.
What did you expect to happen?
No TypeScript error and the ability to only register some directives.
Reproduction URL
https://stackblitz.com/edit/vitejs-vite-tgtwe3?file=src%2Fmain.ts
How to reproduce?
main.ts
Flavour
Vite Plugin (@quasar/vite-plugin)
Areas
TypeScript Support
Platforms/Browsers
No response
Quasar info output
No response
Relevant log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: