Skip to content
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

I use typescript in sfc, but it prompt wrong #759

Closed
3 tasks
Mmpc1994 opened this issue Apr 11, 2018 · 3 comments
Closed
3 tasks

I use typescript in sfc, but it prompt wrong #759

Mmpc1994 opened this issue Apr 11, 2018 · 3 comments

Comments

@Mmpc1994
Copy link

  • I have searched through existing issues
  • I have read through docs
  • I have read FAQ

In the .ts file i define a class and it has three different property(test, test1, test2)

In the .vue file i import the class but it prompt it has the other property (test, lala, test2)

and if i restart the visual studio code or the vetor extension, it become corrent.
export class AuthService { constructor() {} test: string = 'asdasd' test2: string = '123112' test3: string = '123213' }
image

@ktsn
Copy link
Member

ktsn commented Apr 12, 2018

Probably duplicate of #355

@Mmpc1994
Copy link
Author

#355
i will close it

@HerringtonDarkholme
Copy link
Member

You can download preview version here. https://github.com/vuejs/vetur/releases/tag/0.11.8

The preview has a watcher for script update outside of vue file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants