-
Notifications
You must be signed in to change notification settings - Fork 6.8k
refactor(material/dialog): use type overload for open method #11731
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Turns out this is a major change because people wrap |
c98efaf
to
0ea193c
Compare
0ea193c
to
0dab2b5
Compare
Here's the correspondig TypeScript issue: microsoft/TypeScript#14107 |
0dab2b5
to
1505567
Compare
1505567
to
05c29df
Compare
05c29df
to
c0e6270
Compare
* Reworks the `MatDialog.open` method to use overloads, rather than the single signature that has `componentOrTemplateRef: ComponentType<T> | TemplateRef<T>`. This makes the separation clearer and looks nicer in autocompletion. * Adds docs for the `MatBottomSheet.open` method.
c0e6270
to
3342fd9
Compare
* Reworks the `MatDialog.open` method to use overloads, rather than the single signature that has `componentOrTemplateRef: ComponentType<T> | TemplateRef<T>`. This makes the separation clearer and looks nicer in autocompletion. * Adds docs for the `MatBottomSheet.open` method. (cherry picked from commit 70e9eb9)
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
MatDialog.open
method to use overloads, rather than the single signature that hascomponentOrTemplateRef: ComponentType<T> | TemplateRef<T>
. This makes the separation clearer and looks nicer in autocompletion.MatBottomSheet.open
method.