Commit 879507a
committed
feat(material/dialog): Let types flow to
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 #31873MatDialogConfig.closePredicate() WIP1 parent 48e1b35 commit 879507a
File tree
3 files changed
+22
-11
lines changed- src/material/dialog
3 files changed
+22
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 72 | + | |
77 | 73 | | |
78 | | - | |
| 74 | + | |
79 | 75 | | |
80 | 76 | | |
81 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1017 | 1017 | | |
1018 | 1018 | | |
1019 | 1019 | | |
1020 | | - | |
1021 | | - | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
1022 | 1029 | | |
1023 | 1030 | | |
1024 | 1031 | | |
| |||
2302 | 2309 | | |
2303 | 2310 | | |
2304 | 2311 | | |
| 2312 | + | |
| 2313 | + | |
| 2314 | + | |
| 2315 | + | |
| 2316 | + | |
| 2317 | + | |
| 2318 | + | |
| 2319 | + | |
2305 | 2320 | | |
2306 | 2321 | | |
2307 | 2322 | | |
2308 | 2323 | | |
2309 | 2324 | | |
2310 | | - | |
| 2325 | + | |
2311 | 2326 | | |
2312 | 2327 | | |
2313 | 2328 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| |||
0 commit comments