types error with options watch

This issue has been tracked since 2022-09-13.

Version

2.7.10

Reproduction link

codesandbox.io

Steps to reproduce

export default {
  name: "App",
  watch: {
    e: [
      "handle1",
      function handle2(val, oldVal) {},
      {
        handler: function handle3(val, oldVal) {},
      },
    ],
  },
};

What is expected?

no type error

What is actually happening?

type error

More Details About Repo
Owner Name vuejs
Repo Name vue
Full Name vuejs/vue
Language TypeScript
Created Date 2013-07-29
Updated Date 2022-10-03
Star Count 199770
Watcher Count 6094
Fork Count 32877
Issue Count 590

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date