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

@click should report ts type mismatch error #4600

Closed
ghost opened this issue Jul 19, 2024 · 0 comments
Closed

@click should report ts type mismatch error #4600

ghost opened this issue Jul 19, 2024 · 0 comments
Labels
bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first

Comments

@ghost
Copy link

ghost commented Jul 19, 2024

Vue - Official extension or vue-tsc version

2.0.26

VSCode version

1.91.1

Vue version

3.4.31

TypeScript version

5.5.2

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (12) x64 AMD Ryzen 5 5600 6-Core Processor
    Memory: 13.06 GB / 23.92 GB
  Binaries:
    Node: 20.15.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.7.0 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.5.0 - ~\AppData\Roaming\npm\pnpm.CMD
  Browsers:
    Edge: Chromium (126.0.2592.102)
    Internet Explorer: 11.0.22621.3527

Steps to reproduce

代码如图

image

What is expected?

@click接受的是函数引用时,函数ts类型和@click接受的类型应该不一致时,报ts不匹配错误,如下图

image

What is actually happening?

inrement函数类型跟@click类型不匹配,没有显示ts错误

image

Link to minimal reproduction

No response

Any additional comments?

Thanks your job!❤

@ghost ghost added the pending triage label Jul 19, 2024
@johnsoncodehk johnsoncodehk added bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first and removed pending triage labels Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first
Projects
None yet
Development

No branches or pull requests

1 participant