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

Why show diff result in the latest version ?

Open sharefe-demo opened this issue 1 year ago • 2 comments

Hi,i got puzzle about the diff volar version.

Prev volar version: Component volar

Latest volar version: Component volar

The 1.0.9 version could show the right event-parameter type, but it is fail in the latest version (1.8+). What should i do to fix this problem ?

Demo code repo: https://github.com/sharefe-demo/volar-types-demo

sharefe-demo avatar Jul 02 '23 03:07 sharefe-demo

cc @so1ve

johnsoncodehk avatar May 13 '24 20:05 johnsoncodehk

type ObjectEmitsOptions = Record<string, ((...args: any[]) => any) | null>;

And you just make EmitsOptions to extend ObjectEmitsOptions, thus EmitsOptions became { [x: string]: ((...args: any[]) => any) | null; }

so1ve avatar May 14 '24 08:05 so1ve