language-tools
language-tools copied to clipboard
Why show diff result in the latest version ?
Hi,i got puzzle about the diff volar version.
Prev volar version:
Latest volar version:
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
cc @so1ve
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; }