-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
$el is typed as any #7915
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Fixes: vuejs#7915
I think it's indeed https://github.com/vuejs/core/blob/main/packages/runtime-dom/src/nodeOps.ts The $el can be whatever you want if you are in other runtime. |
I agree with @mmis1000 , I also think it should be |
Maybe adjust the documentation at https://vuejs.org/api/component-instance.html#el to reflect that? |
Wondering if it is possible to left it as a blank interface and argument in Like what express.js does https://stackoverflow.com/questions/37377731/extend-express-request-object-using-typescript In this way, if you don't have |
Vue version
3
Link to minimal reproduction
https://sfc.vuejs.org/#eNpVUcFOwzAM/RUTIXWTWCquWzeE4MAfcMlltO7WKXGixNmQqv47TjcmOLXP7/n52RnVawj6nFGtVZPaOASGhJzDztDggo8MI0TsYYI+egeVSCtDhlpPicGlA2wLv6g+0FoPnz7a7qFaGmrqq50YCWB0we4ZBQE0x+fdOM7N09TUgubqQCEznFfOd2i3RglvlFBNfe9WT+qaauX2QZ+SJ8k9lm5zI5JRa5grpSZpCzbqyBzSuq5T35ZtT0n7eKjlT8dMPDjUmNzqK/pLwijGRhWLydAkI8uJOMmk+0U67AfCNy+YkPjfdTZlYfyelaLbZzt//+oXc8BWYGbsfuN2vs2usMv7AhzlLSIBH4ekH9G+aH8hjO83pYwqMol5zbrcqOkHn+mgyA==
Steps to reproduce
this.$el
has theany
typeWhat is expected?
this.$el
has theNode | undefined
typeWhat is actually happening?
this.$el
has theany
typeSystem Info
No response
Any additional comments?
$el is defined at runtime-core/src/componentPublicInstance.ts line 197
The text was updated successfully, but these errors were encountered: