language-tools
language-tools copied to clipboard
the generics of creatEeventDispatcher will lose the type constraint by using the imported interface
Describe the bug
First, I directly define the generics of createeventdispatcher. The performance of the editor is normal, identify the event type of the component.
If the generic definition is extracted, the event type cannot be deduced. As shown below.

Reproduction
https://github.com/cscxj/svelte-events-type/blob/master/src/Container.svelte
Logs
No response
System Info
OS: Darwin arm64 21.3.0
vscode: 1.69.2 (Universal)
Svelte for VS Code v105.20.0
svelte v3.49.0
vite 3.0.0
Severity
annoyance