feat(tree): typescript/strong typing of nodes #30502
Labels
area: cdk/tree
feature
This issue represents a new feature or feature request rather than a bug or bug fix
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Feature Description
Currently
*matTreeNodeDef
types the resulting variable asany
:Use Case
The lack of strong typing is really problematic for bigger projects, and it feels like a downgrade in developer experience compared to custom build trees.
Further motivation for this has been described in:
#16273
angular/angular#28731
https://nartc.me/blog/typed-mat-cell-def/
#22290
Workaround copied from #22290:
The text was updated successfully, but these errors were encountered: