Closed Outpox closed 7 years ago
Unfortunately this is expected at the moment. This is just something the Vetur plugin may not yet support. Our team is willing to help the community where we can, but it's definitely no small task. CCing @octref.
Alright thanks for the quick answer, I can keep on working without worrying to much.
Thanks for your work, there was really no struggle to setup my project by following your tutorial :+1:
Working on it at https://github.com/octref/vetur/issues/145. Probably will take a while.
Thanks @octref, I'm following the issue on your repo :)
Should I close the issue?
Yea you can close it since this is an editor support issue. Nothing this repo could do on its side.
Hello, I've been struggling with getting completion on props given by a parent component in .vue files.
My goal is to have autocompletion inside the template on the
myClass
object of typeTestClass
. So I'm trying to find a way to type my variable.Here's what I've tried until now:
Using a computed property which return the type I want. No IntelliSense.
Creating a new variable in data which copy the initial value. No IntelliSense.
Change props declaration to be able to specify the type.
error TS2693: 'TestClass' only refers to a type, but is being used as a value here.
Obviously the same error when trying to set the
type
propertyI feel like I'm just hitting a wall because this is not supported, which is kind of a bummer because I wanted the power of TypeScript combined with Vue.
I may have missed something or I'm just doing it wrong, if anyone have an idea please share :)