Content-Length: 234224 | pFad | http://github.com/vuejs/vue/issues/13009
5CComponentCustomOptions
with a function causes TS2769
when using augmention
#13009
Fetched URL: http://github.com/vuejs/vue/issues/13009
Alternative Proxies:
Version
2.7.14
Reproduction link
github.com
Steps to reproduce
ComponentCustomOptions
interface with a new optional member function. Example:funcOption?: (...) => ...
.defineComponent
. ExampledefineComponent({ name: 'CompName', funcOption: (...) => ... })
.npm run build
withvite
andvue-tsc
installed and setup.Using the repro link:
npm ci
npm run build
What is expected?
That the build would succeed without error.
What is actually happening?
A
TS2769
error results when built. It seems TypeScript is attempting to use the functional component overload rather than one of the normal overloads.The text was updated successfully, but these errors were encountered: