Skip to content

MatDialog open method R generic is too loose #12898

Open
@jelbourn

Description

@jelbourn

Because the R generic on MatDialog.open isn't constrained by arguments to the function, it's effectively always any. We should remove the method generic and change the return generic to {}, which will force people to explicitly state which type it is when consuming it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functionsarea: material/dialogrefactoringThis issue is related to a refactoring

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions