You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following error appears (in VSCode), mentioning a "runtime.core.d.ts" type:
Thye issue appears to be here:
Where DirectiveModifiers maps to Record<K, boolean> where it should be Partial<Record<K, boolean>>, since no obligation exists to have any modifier at all, let along all of them at once.
ludwig801
changed the title
Directive type definition wrong "modifiers" definition
Directive type definition has wrong "modifiers" definition
Dec 24, 2024
Vue version
3.5.12
Link to minimal reproduction
https://play.vuejs.org/#eNp9UctOwzAQ/JWVLwGppILCpUor8agEiAKCHi2hkm6LS2Jb9iYUhfw7a5c+DqiHRPbM7Hp2pxGX1qZ1haIvMsLSFlPCodQA2UzVUJ8QekqnRTHMugwwk3X3ZHz1uVOWwCNVFoqpXgykIC8Fs6q0xhE0UE+4C7Qwd6aEJO3GexJ6ratZKzpclRs9V4t06Y1mP02wIUVuSqsKdE+WlNHcuQ+RCRwbM1/3ESNXYWeD5x+Yf/6DL/0qYFI8O/ToapRiy9HULZDW9Oj1EVd83pKlmVUFqw+QL+hNUQWPa9lVpWdse08X3d7FpSi9mPjRilD7zVDBaFC2US8Fh3J9YPSd3V56HuukbnmLcbcpeV7g3/7p2yKHcKMc5qRq3AbBLyTScYr84SpqOQFOKvbo7yqy28n4YVRgiZo64Mmx/Q4kPE8CP5BoozEZwoDNcSeAd5wbh2NTaTo6hoYHYrgNP/b3VqMLM7O/XnqRnp6J9hdUM9ct
Steps to reproduce
Create a simple directive:
directives/vTest.ts
Import it, not using all the modifiers at once.
App.vue
What is expected?
No error.
What is actually happening?
The following error appears (in VSCode), mentioning a "runtime.core.d.ts" type:
Thye issue appears to be here:
Where
DirectiveModifiers
maps toRecord<K, boolean>
where it should bePartial<Record<K, boolean>>
, since no obligation exists to have any modifier at all, let along all of them at once.System Info
No response
Any additional comments?
First mentioned in vuejs/language-tools#5080, but marked as an upstream error.
The text was updated successfully, but these errors were encountered: