-
Notifications
You must be signed in to change notification settings - Fork 6.8k
refactor(datepicker): remove circular dependencies #19629
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.
export class MatDateRangePicker<D> | ||
extends MatDatepickerBase<MatDateRangeInput<D>, DateRange<D>, D> { | ||
export class MatDateRangePicker<D> extends | ||
MatDatepickerBase<MatDatepickerControl<D> & {comparisonStart: D|null, comparisonEnd: D|null}, |
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.
Would it be good to make a common interface that MatDateRangeInput
implements? That way it would enforce that the 2 classes are in agreement on the type of these additional properties
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.
Done.
0cb1255
to
1ca9c47
Compare
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
@crisbeto passes presubmit, just needs rebase |
Adjusts a couple of types in order to avoid circular dependencies.
1ca9c47
to
9ecc318
Compare
Rebased. |
Adjusts a couple of types in order to avoid circular dependencies.
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. |
Adjusts a couple of types in order to avoid circular dependencies.