Skip to content

refactor(common): add defaults to new generic parameters - #34206

Closed
crisbeto wants to merge 1 commit into
angular:masterfrom
crisbeto:common-default-generics
Closed

crisbeto wants to merge 1 commit into
angular:masterfrom
crisbeto:common-default-generics

Conversation

@crisbeto

@crisbeto crisbeto commented Dec 3, 2019

Copy link
Copy Markdown
Member

This is a follow-up to #33997 where some new generic parameters were added without defaults which is technically a breaking change. These changes add the defaults.

@crisbeto crisbeto added action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release refactoring Issue that involves refactoring or code-cleanup labels Dec 3, 2019
@crisbeto
crisbeto marked this pull request as ready for review December 3, 2019 08:49
@crisbeto
crisbeto requested review from a team December 3, 2019 08:49

@JoostK JoostK left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you also update the template type check type definitions?

@crisbeto
crisbeto force-pushed the common-default-generics branch from b6e5ab9 to cc4f1e2 Compare December 3, 2019 09:36
@crisbeto
crisbeto requested a review from a team December 3, 2019 09:36

@IgorMinar IgorMinar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we set the default to be unknown rather than any?

This is a follow-up to angular#33997 where some new generic parameters were added without defaults which is technically a breaking change. These changes add the defaults.
@crisbeto

crisbeto commented Dec 3, 2019

Copy link
Copy Markdown
Member Author

Done.

@crisbeto
crisbeto force-pushed the common-default-generics branch from cc4f1e2 to 49c20b2 Compare December 3, 2019 11:00
Comment thread packages/common/src/directives/ng_if.ts Resolved
@gkalpak gkalpak added the action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews label Dec 3, 2019
gkalpak added a commit to gkalpak/ngcc-validation that referenced this pull request Dec 3, 2019
gkalpak added a commit to gkalpak/ngcc-validation that referenced this pull request Dec 3, 2019
@crisbeto crisbeto removed the action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews label Dec 3, 2019
@mhevery mhevery added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Dec 3, 2019
@mhevery

mhevery commented Dec 3, 2019 •

Copy link
Copy Markdown
Contributor

presubmit - Looks good. The failures are from runtime and flaky (where as this change would break at compile time)

@mhevery mhevery added the area: core Issues related to the framework runtime label Dec 3, 2019
@ngbot ngbot Bot added this to the needsTriage milestone Dec 3, 2019
@mhevery mhevery closed this in cca2616 Dec 4, 2019
mhevery pushed a commit that referenced this pull request Dec 4, 2019
This is a follow-up to #33997 where some new generic parameters were added without defaults which is technically a breaking change. These changes add the defaults.

PR Close #34206
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Jan 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: core Issues related to the framework runtime cla: yes refactoring Issue that involves refactoring or code-cleanup target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants