title: Vue.js - Typescript: Expected method shorthand in object literal
body: <p>inside my input component, I have this code in order to make the v-model on the input works as a component:</p>
  <pre><code>computed: {
  inputListeners: function() {
    const vm = this;
    return Object.assign({},
      this.$listeners,
      {
        input: (event: any) =&gt; {
          vm.$emit('input', event.target.value);
        },
      },
    );
  },
  </code></pre>
  <p>This is the official example:
  <a href="https://v2.vuejs.org/v2/guide/components-custom-events.html#Binding-Native-Events-to-Components" rel="nofollow noreferrer">https://v2.vuejs.org/v2/guide/components-custom-events.html#Binding-Native-Events-to-Components</a></p>
  <p>Now Typescript return me this Warning:</p>
  <pre><code>WARNING in /Users/../components/InputText.vue
  Expected method shorthand in object literal ('{inputListeners() {...}}').
  &gt; inputListeners: function() {
  </code></pre>
  <p>Do you know the code solution?</p>