Skip to content

NestedTreeControl getChildren should accept a readonly return type #17824

@jinder

Description

@jinder

The getChildren parameter in the NestedTreeControl has the following signature:

 (dataNode: T) => (Observable<T[]> | T[] | undefined | null)

As the control does not manipulate the child collection, this should be changed to readonly so that it can be used with readonly arrays:

(dataNode: T) => (Observable<readonly T[]> | readonly T[] | undefined | null)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: cdk/treefeatureThis issue represents a new feature or feature request rather than a bug or bug fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions