Directive modifier validation is wrong #5080
Labels
bug
Something isn't working
good reproduction ✨
This issue provides a good reproduction, we will be able to investigate it first
upstream: core
Vue - Official extension or vue-tsc version
2.2.0
VSCode version
1.96.2
Vue version
3.5.12
TypeScript version
5.7.2
System Info
No response
package.json dependencies
No response
Steps to reproduce
Create a simple directive and type it:
vTest.ts
Import the directive and use one of the modifiers:
What is expected?
No error. Everything is used correctly.
What is actually happening?
The following error is being issued:
Which relates to runtime.core.d.ts:
Which expects
DirectiveModifiers
to be aRecord<K, boolean>
- i.e.: a record containing all modifiers as keys.I understand this should be
Partial<Record<K, boolean>>
, no?Link to minimal reproduction
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: