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

type-safety #1

Open
mindplay-dk opened this issue Jan 22, 2016 · 1 comment
Open

type-safety #1

mindplay-dk opened this issue Jan 22, 2016 · 1 comment

Comments

@mindplay-dk
Copy link

Thanks for sharing this!

I loaded up the examples in VS Code to see how it works at design-time, and first thing I noticed about the examples is, they're not very type-safe?

For example, model: any in tree.ts provides no type-safety, not even when using Vue's built-in value decorators, such as this.model.$add(...).

Have you gotten any further with this pattern, on your own projects, since posting this six months ago?

If so, would you consider maybe updating one of the example with full tape-safety?

Thanks again, this is a great starting point!

@gamperl
Copy link
Contributor

gamperl commented Feb 12, 2016

It seems, the vue.d.ts is not up to date. Try using the ones from https://github.com/kaorun343/vue-typescript.

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

2 participants