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
Example instructs to augment @vue/runtime-core module.
System Info
No response
Any additional comments?
Augmentation docs were updated in this commit vuejs/docs@92f1b4b but it seems this was never reflected in JSDoc of ComponentCustomProperties or ComponentCustomOptions types.
Vue version
3.4.37
Link to minimal reproduction
https://www.typescriptlang.org/play/?#code/JYWwDg9gTgLgBDAnmApnA3nAwhcEB2K+MWArgM4y4AKUEqswK5cAvnAGZ0hwDkAbqRS8A3EA
Steps to reproduce
ComponentCustomProperties
orComponentCustomOptions
and inspect@example
What is expected?
Example should say to augment
vue
module as stated in docs https://vuejs.org/guide/typescript/options-api.html#augmenting-global-properties. For instanceWhat is actually happening?
Example instructs to augment
@vue/runtime-core
module.System Info
No response
Any additional comments?
Augmentation docs were updated in this commit vuejs/docs@92f1b4b but it seems this was never reflected in JSDoc of
ComponentCustomProperties
orComponentCustomOptions
types.This was discovered after
vue-router
migrated to correct way of augmentation in 4.4.1 https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#441-2024-07-31 and this caused some disruption in type checking when combined with other packages that usevue/runtime-core
augmentation.Willing to work on PR for this.
The text was updated successfully, but these errors were encountered: