Skip to content

feat(common): added typed overloaded for AsyncPipe.transform() - #14367

Closed
chuckjaz wants to merge 1 commit into
angular:masterfrom
chuckjaz:async_type_parameter
Closed

chuckjaz wants to merge 1 commit into
angular:masterfrom
chuckjaz:async_type_parameter

Conversation

@chuckjaz

@chuckjaz chuckjaz commented Feb 9, 2017

Copy link
Copy Markdown
Contributor

BREAKING CHANGE: Classes that derive from AsyncPipe and override
transform() might not compile correctly. Use of async pipe in
templates is unaffected.

Mitigation: Update derived classes of AsyncPipe that override
transform() to include the type parameter overloads.

Related to #12398

What kind of change does this PR introduce? (check one with "x")

[x] Feature

What is the current behavior? (You can also link to an open issue here)

The type of AsyncPipe.transform() is any for which no type information can be inferred.

What is the new behavior?

The type of AsyncPipe.transform() can be used to infer the type of the result from the event, promise or observable the transform is used to simplify.

Does this PR introduce a breaking change? (check one with "x")

[x] Yes
[ ] No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...

See the commit message.

BREAKING CHANGE: Classes that derive from `AsyncPipe` and override
`transform()` might not compile correctly. Use of  `async` pipe in
templates is unaffected.

Mitigation: Update derived classes of `AsyncPipe` that override
`transform()` to include the type parameter overloads.

Related to angular#12398
@chuckjaz
chuckjaz force-pushed the async_type_parameter branch from 9b26725 to 700cfd2 Compare February 9, 2017 02:52
@chuckjaz chuckjaz added the action: review The PR is still awaiting reviews from at least one requested reviewer label Feb 9, 2017
@mhevery mhevery added the action: merge The PR is ready for merge by the caretaker label Feb 9, 2017
@mhevery mhevery closed this in 4da7925 Feb 9, 2017
asnowwolf pushed a commit to asnowwolf/angular that referenced this pull request Aug 11, 2017
…ular#14367)

BREAKING CHANGE: Classes that derive from `AsyncPipe` and override
`transform()` might not compile correctly. Use of  `async` pipe in
templates is unaffected.

Mitigation: Update derived classes of `AsyncPipe` that override
`transform()` to include the type parameter overloads.

Related to angular#12398

PR Close angular#14367
juleskremer pushed a commit to juleskremer/angular that referenced this pull request Aug 28, 2017
…ular#14367)

BREAKING CHANGE: Classes that derive from `AsyncPipe` and override
`transform()` might not compile correctly. Use of  `async` pipe in
templates is unaffected.

Mitigation: Update derived classes of `AsyncPipe` that override
`transform()` to include the type parameter overloads.

Related to angular#12398

PR Close angular#14367
@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 Sep 10, 2019
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 action: review The PR is still awaiting reviews from at least one requested reviewer cla: yes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants