You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I declare and use this component (adding a template and/or props doesn't change anything) the events are recognized but not properly type checked in the parent:
If I use the component like this <HelloWorldTest @foo="handleTest" @bar="handleTest" /> with function handleTest(str: string): void {}, I get (property) foo: (($event?: undefined) => any) | undefined and (property) bar: ((thing: number) => any) | undefined on hover, but there is no error.
To reproduce just add the above script to the volar-starter project and use it in another component.
Visual Studio Code
TypeScript Vue Plugin (Volar)
v0.27.23
Vue Language Features (Volar)
v0.27.23
Version: 1.60.2
Commit: 7f6ab5485bbc008386c4386d08766667e155244e
Date: 2021-09-22T12:01:43.795Z
Electron: 13.1.8
Chrome: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Linux x64 5.11.0-34-generic
The text was updated successfully, but these errors were encountered:
If I declare and use this component (adding a template and/or props doesn't change anything) the events are recognized but not properly type checked in the parent:
If I use the component like this
<HelloWorldTest @foo="handleTest" @bar="handleTest" />
withfunction handleTest(str: string): void {}
, I get(property) foo: (($event?: undefined) => any) | undefined
and(property) bar: ((thing: number) => any) | undefined
on hover, but there is no error.To reproduce just add the above script to the volar-starter project and use it in another component.
The text was updated successfully, but these errors were encountered: