Skip to content

Conversation

PowerKiKi
Copy link
Contributor

The goal is to be able to use MatDialogConfig.closePredicate() with proper typing without repeating them, or without any casting.

This is a work in progress, because even though the modified test would compile, and most likely pass, other places in the codebase are broken by the breaking change introduced in MatDialogConfig. So I would like to ask the opinion of the Angular team here. Is there any chance to have something similar merged, if it gets polished up ?

Fixes #31873

@crisbeto, since you wrote that code originally, in #30919, do you have any thoughts to share on this ?

…ate()` WIP

The goal is to be able to use `MatDialogConfig.closePredicate()` with
proper typing without repeating them, or without any casting.

This is a work in progress, because even though the modified test would
compile, and most likely pass, other places in the codebase are broken
by the breaking change introduced in `MatDialogConfig`. So I would like
to ask the opinion of the Angular team here. Is there any chance to have
something similar merged, if it gets polished up ?

Fixes angular#31873
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: material/dialog detected: feature PR contains a feature commit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug(dialog): Typing of new MatDialogConfig.closePredicate
1 participant