Skip to content

MdDialogRef does not capture a type for the close result #1766

Closed
@eagle-dan1349

Description

@eagle-dan1349

Bug, feature request, or proposal:

Proposal

What is the expected behavior?

Stronger typed MdDialogRef<T, U> class with something like close(dialogResult?: U) method. Or may be close method should accept some sort of template class like MdDialogResult or something.

What is the current behavior?

MdDialogRef's close() method accepts argument of type any.

What are the steps to reproduce?

N/a

What is the use-case or motivation for changing an existing behavior?

Follow TypeScript way

Which versions of Angular, Material, OS, browsers are affected?

Any

Metadata

Metadata

Assignees

Labels

P4A relatively minor issue that is not relevant to core functionsfeatureThis issue represents a new feature or feature request rather than a bug or bug fixneeds: discussionFurther discussion with the team is needed before proceeding

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions