TreeTableProps: type error in treetable.d.ts file #2881
Labels
Type: Bug
Issue contains a defect related to a specific component.
Typescript
Issue or pull request is *only* related to TypeScript definition
Milestone
Describe the bug
Compiler fails with the following error
Interface 'TreeTableProps' incorrectly extends interface 'Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLDivElement>, HTMLDivElement>, "onContextMenu" | "onSelect" | "ref">'. Types of property 'value' are incompatible. Type 'TreeNode[]' is not assignable to type 'string | number | readonly string[]'. Type 'TreeNode[]' is not assignable to type 'readonly string[]'. Type 'TreeNode' is not assignable to type 'string'.ts(2430)
This is the value parameter described inside the react interface that the treetableprops interface is extending

I released an hotfix with the 'skipLibCheck' set to true...but that's not really something i'd like to do
Reproducer
No response
PrimeReact version
8.0.1
React version
17.x
Language
TypeScript
Build / Runtime
Create React App (CRA)
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No type errors when compiling
The text was updated successfully, but these errors were encountered: