-
Notifications
You must be signed in to change notification settings - Fork 15
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
Cannot find name '$close' vs-code #3
Comments
Hello, it's declared here. When you install the plugin, it creates that global function and makes it available in all components. I'm not sure that VSCode can pick that up :-/ |
Actually $close could be a plain JS function rather than a member function of components introduced by a plugin...since you have to pass this anyway...I don't know why I did it this way. I must look into this. |
It would be nice as a function that could be imported from the library, but something like this will get you by if placed in a declare module "@vue/runtime-core" {
interface ComponentCustomProperties {
$close: (comp?: Component, fallback?: any) => void;
}
} |
$close has been deprecated, please use closeDialog now, see docs |
Everything works great, but vs-code tells me that it can't find function $close. From where should I find it's declaration? Or maybe there is some workaround to just hide the error?
The text was updated successfully, but these errors were encountered: