Skip to content
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

fix(core): adjust toSignal types to handle more common cases #51991

Closed
wants to merge 1 commit into from

Conversation

alxhub
Copy link
Member

@alxhub alxhub commented Oct 3, 2023

This commit cleans up the signatures of toSignal to better handle the types of situations that it might be used in, and produce better type inference results.

Fixes #50687
Fixes #50591

@pkozlowski-opensource pkozlowski-opensource added this to the v17-candidates milestone Oct 5, 2023
@ngbot ngbot bot removed this from the v17-candidates milestone Oct 5, 2023
@pkozlowski-opensource pkozlowski-opensource added area: core Issues related to the framework runtime cross-cutting: signals labels Oct 5, 2023
@ngbot ngbot bot added this to the Backlog milestone Oct 5, 2023
@pkozlowski-opensource pkozlowski-opensource 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 Oct 5, 2023
@pkozlowski-opensource
Copy link
Member

Marking it as cleanup since it needs the public API update

This commit cleans up the signatures of `toSignal` to better handle the
types of situations that it might be used in, and produce better type
inference results.

Fixes angular#50687
Fixes angular#50591

Co-authored-by: Andrew Scott <atscott@google.com>
@alxhub alxhub added target: minor This PR is targeted for the next minor release and removed action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews labels Oct 9, 2023
Copy link
Member

@pkozlowski-opensource pkozlowski-opensource left a comment

Choose a reason for hiding this comment

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

LGTM

Reviewed-for: public-api
Reviewed-for: fw-core

@pullapprove pullapprove bot requested a review from dylhunn October 10, 2023 10:48
@pkozlowski-opensource pkozlowski-opensource added the action: review The PR is still awaiting reviews from at least one requested reviewer label Oct 10, 2023
Copy link
Contributor

@jessicajaniuk jessicajaniuk left a comment

Choose a reason for hiding this comment

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

reviewed-for: public-api

@alxhub alxhub 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 Oct 10, 2023
@angular-robot
Copy link
Contributor

angular-robot bot commented Oct 10, 2023

This PR was merged into the repository by commit 5411864.

@angular-robot angular-robot bot closed this in 5411864 Oct 10, 2023
@angular-automatic-lock-bot
Copy link

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 Nov 11, 2023
ChellappanRajan pushed a commit to ChellappanRajan/angular that referenced this pull request Jan 23, 2024
…#51991)

This commit cleans up the signatures of `toSignal` to better handle the
types of situations that it might be used in, and produce better type
inference results.

Fixes angular#50687
Fixes angular#50591

Co-authored-by: Andrew Scott <atscott@google.com>

PR Close angular#51991
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 cross-cutting: signals target: minor This PR is targeted for the next minor release
Projects
None yet
4 participants