core
core copied to clipboard
fix: stricter type condition for `EventHandlers`
Issue: https://github.com/johnsoncodehk/volar/issues/1985
With @types/node version >= 18.8.1, MouseEvent extends Function is true, but with version <= 18.8.0 MouseEvent extends Function is false.
Will this fix also be applied for Vue 2.7.x ?
why has this been sitting for 2 days? it's chaos for volar
@acidjazz We may need cautious to check if the change leads to some regressions, so please be patient. :)
Downgrading @types/node to 18.8.0 for now is fine.
FYI the issue has been fixed in @types/node v18.11.1+ https://github.com/DefinitelyTyped/DefinitelyTyped/pull/62782
so you don't have to wait for this PR to be merged to update your @types/node version.
@sodatea I have 18.11.3 but the error is there.