Skip to content

feat(CdkDragDrop): Add type bounds for item in CdkDragDrop event #23208

Closed
@ataraciuk

Description

@ataraciuk

Feature Description

Currently, all events except CdkDragDrop have item: CdkDrag<T>;
CdkDragDrop has item: CdkDrag;

It would be nice to also add a type bound there.

Use Case

I had to modify my CdkDrag data type on my current project. It would have been nice if the code editor could pick the changes an highlight the places where I had to propagate the changes. Because of no type bounds, all my item.data variable had any type and thus it was harder to track.

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: cdk/drag-drop

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions