-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
chore(dialog): add generic param for config data #7447
Conversation
2e41711
to
a1c6b56
Compare
@@ -23,7 +23,7 @@ export interface DialogPosition { | |||
/** | |||
* Configuration for opening a modal dialog with the MatDialog service. | |||
*/ | |||
export class MatDialogConfig { | |||
export class MatDialogConfig<D = any> { |
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.
Doesn't this require TS 2.3 or 2.4?
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.
We're at ~2.4.2
.
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
We may use 2.4, but I don't think we ever officially said that we require greater than 2.2. Can you add a |
Adds a generic parameter to the `MatDialogConfig` that indicates the type of its `data`. BREAKING CHANGE: Material now requires at least TypeScript 2.4. Fixes angular#4398.
a1c6b56
to
544ac12
Compare
Updated. |
According to this comment, the core team recommends the use of More precisely:
|
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. |
Adds a generic parameter to the
MatDialogConfig
that indicates the type of itsdata
.BREAKING CHANGE: Material now requires at least TypeScript 2.4.
Fixes #4398.