docs: correct TypeScript interface for typing global custom directives(via GlobalDirectives)#3325
Merged
NataliaTepluhina merged 7 commits intovuejs:mainfrom Feb 10, 2026
Merged
docs: correct TypeScript interface for typing global custom directives(via GlobalDirectives)#3325NataliaTepluhina merged 7 commits intovuejs:mainfrom
GlobalDirectives)#3325NataliaTepluhina merged 7 commits intovuejs:mainfrom
Conversation
…tion Co-authored-by: aiktb <104723527+aiktb@users.noreply.github.com>
Co-authored-by: aiktb <104723527+aiktb@users.noreply.github.com>
Fix: Use GlobalDirectives interface for typing global custom directives
✅ Deploy Preview for vuejs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Pull request overview
This PR corrects the TypeScript documentation for typing global custom directives in Vue applications. The fix addresses an incorrect reference to ComponentCustomProperties, replacing it with the correct GlobalDirectives interface.
- Updates the TypeScript interface reference from
ComponentCustomPropertiestoGlobalDirectivesfor typing global custom directives - Ensures consistency between the documentation text and code examples
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
GlobalDirectives)GlobalDirectives)
5 tasks
Member
|
Also: |
Contributor
Author
Done |
KazariEX
approved these changes
Feb 1, 2026
NataliaTepluhina
approved these changes
Feb 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I tested this on the latest versions of Vue (3.5.24) and vue-tsc (3.1.4). ComponentCustomProperties does not work for registering global directives. Instead, you should use GlobalDirectives.