We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ComponentCustomOptions
TS2769
2.7.14
github.com
funcOption?: (...) => ...
defineComponent
defineComponent({ name: 'CompName', funcOption: (...) => ... })
npm run build
vite
vue-tsc
Using the repro link:
npm ci
That the build would succeed without error.
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:
Just discovered the same issue with augment ComponentOptions as well.
ComponentOptions
Sorry, something went wrong.
It will work if you change the return value of the funcOption.
funcOption
const HomeView = defineComponent({ name: 'HomeView', components: { TheWelcome }, funcOption: route => { return {} } })
No branches or pull requests
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: