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

Unable to use directives in a render function with typescript #8013

Closed
KaelWD opened this issue Apr 13, 2018 · 0 comments · Fixed by #8003
Closed

Unable to use directives in a render function with typescript #8013

KaelWD opened this issue Apr 13, 2018 · 0 comments · Fixed by #8003

Comments

@KaelWD
Copy link
Contributor

KaelWD commented Apr 13, 2018

Version

2.5.16

Reproduction link

Vue.extend({
  render (h): VNode {
    return h('div', {
      directives: [
        { name: 'a', value: 'foo' }
      ]
    })
  }
})

Steps to reproduce

Paste it into options-test.ts and run yarn test:types

What is expected?

No errors

What is actually happening?

Property 'oldValue' is missing in type '{ name: string; value: string; }'.

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

Successfully merging a pull request may close this issue.

2 participants