Closed AlbertMN closed 1 year ago
I am also suffering from this issue, however, because I use typescript it even yells an error at me. The code works fine tho. Please fix this.
Same problem with files ts.
Same issue with the Plugin Version 0.22.1
.
Duplicate of #223
In Svelte, it's possible to
export
a function, which can then be executed via the initialized component, the same way as methods like$destroy
are exposed for the individual component.Example; test.svelte
main.js
This code works, but the IDE doesn't suggest, and can't find, a method by the name of
myExportedFunction
for the component. This is also not to be confused with importing functions from the Svelte file into the JS file - this serves a different purpose.