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

Reassigning data doesn't type-check correctly in interpolation #2195

Open
octref opened this issue Aug 25, 2020 · 3 comments
Open

Reassigning data doesn't type-check correctly in interpolation #2195

octref opened this issue Aug 25, 2020 · 3 comments

Comments

@octref
Copy link
Member

octref commented Aug 25, 2020

When upgrading to TS 4.0.2, this no longer causes error:

<template>
  <div>
    <button @click="test = 'test'">Invalid Update Type</button>
  </div>
</template>

<script lang="ts">
import Vue from 'vue'

export default Vue.extend({
  data() {
    return {
      test: 0
    }
  }
})
</script>

@ktsn, I commented this test out for now: bc07565

Woud you have time to take a look?

@ktsn
Copy link
Member

ktsn commented Aug 26, 2020

Ok, let me investigate on it.

@octref
Copy link
Member Author

octref commented Sep 13, 2020

🤷‍♂️ That's weird. I'll take a look when I have time...

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

No branches or pull requests

2 participants