language-tools icon indicating copy to clipboard operation
language-tools copied to clipboard

the generics of creatEeventDispatcher will lose the type constraint by using the imported interface

Open cscxj opened this issue 3 years ago • 0 comments

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. image If the generic definition is extracted, the event type cannot be deduced. As shown below. image

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

cscxj avatar Jul 28 '22 03:07 cscxj