[Bug Report] Typechecking issue with typescript 4.9.5
- Dominant language
- Vue
- Stars
- 54k
- Forks
- 14.4k
- PR merge metrics
- No merged PRs in 30d
Description
Typechecking fails with typescript 4.9.5 on elementui 2.15.13. I have created a repro repo that is linked below.
### Element UI version
2.15.13
### OS/Browsers version
Ubuntu 22.04
### Vue version
2.7.14
### Reproduction Link
https://github.com/Picterra/element-repro-typescript-issue
### Steps to reproduce
git clone git@github.com:Picterra/element-repro-typescript-issue.git
cd element-repro-typescript-issue
npm install
npm run lint
### What is Expected?
npm run lint (which is running vue-tsc / typescript under the hood) should complete typechecking successfully
### What is actually happening?
The linting (which is running vue-tsc / typescript under the hood) will fail with the following error:
```
node_modules/element-ui/types/element-ui.d.ts:310:60 - error TS2344: Type 'D' does not satisfy the constraint 'TreeData'.
310 export class Tree extends ElTree {}
~
node_modules/element-ui/types/element-ui.d.ts:310:28
310 export class Tree extends ElTree {}
~~~~~~~~~~~~
This type parameter might need an `extends TreeData` constraint.
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.