Skip to content

Use Writable utility type to improve typings - #49754

Closed
JeanMeche wants to merge 6 commits into
angular:mainfrom
JeanMeche:chore/use-writable
Closed

JeanMeche wants to merge 6 commits into
angular:mainfrom
JeanMeche:chore/use-writable

Conversation

@JeanMeche

@JeanMeche JeanMeche commented Apr 8, 2023 •

Copy link
Copy Markdown
Member

The Writable type is usefull when we want overwrite readonly properties and we still want to maintain code navigation/reference. It should be use instead of any or {myPrivateKey: any} type assertions for example.

See individual commits

PR Type

What kind of change does this PR introduce?

  • Refactoring (no functional changes, no api changes)

Does this PR introduce a breaking change?

  • No

Comment thread packages/forms/src/directives/ng_control_status.ts Outdated
@JeanMeche
JeanMeche force-pushed the chore/use-writable branch from 19a94b6 to d390fdd Compare April 8, 2023 23:34
Comment thread packages/core/src/linker/query_list.ts Outdated

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Any idea why this property is of type true and not a boolean ?

@JeanMeche
JeanMeche force-pushed the chore/use-writable branch from d390fdd to 0b65882 Compare April 8, 2023 23:54
@JeanMeche
JeanMeche marked this pull request as ready for review April 9, 2023 00:05
@JeanMeche
JeanMeche force-pushed the chore/use-writable branch 5 times, most recently from 6d3600c to dd6fba6 Compare April 11, 2023 18:30
@jessicajaniuk jessicajaniuk added the area: core Issues related to the framework runtime label Apr 12, 2023
@ngbot ngbot Bot added this to the Backlog milestone Apr 12, 2023
@JeanMeche

Copy link
Copy Markdown
Member Author

No interest for this change ? =)

@dylhunn

dylhunn commented Apr 24, 2023

Copy link
Copy Markdown
Contributor

This is a nice change conceptually. I just need to sit down and look over all the usage points.

@JeanMeche

Copy link
Copy Markdown
Member Author

@dylhunn Should be really straight forward 😊

@pullapprove
pullapprove Bot removed the request for review from atscott May 4, 2023 02:25
@pullapprove
pullapprove Bot requested a review from AndrewKushnir May 16, 2023 09:27
@JeanMeche
JeanMeche force-pushed the chore/use-writable branch from dd6fba6 to 3c1cee5 Compare June 27, 2023 21:30
@JeanMeche

Copy link
Copy Markdown
Member Author

The presubmit is failing, any info on what is breaking ?

@JeanMeche
JeanMeche force-pushed the chore/use-writable branch 2 times, most recently from 06fffe3 to b8d71f6 Compare August 29, 2023 17:54

@jessicajaniuk jessicajaniuk 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.

reviewed-for: fw-animations

@dylhunn dylhunn 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.

reviewed-for: fw-core, fw-forms

The `Writable` type is usefull when we want overwrite readonly properties and we still want to maintain code navigation/reference. It should be use instead of `any` type assertion for example.
…operties.

The `Writable` type is usefull when we want overwrite readonly properties and we still want to maintain code navigation/reference. It should be use instead of `any` type assertions for example.
…perties.

The `Writable` type is usefull when we want overwrite readonly properties and we still want to maintain code navigation/reference. It should be use instead of `any` type assertions for example.
…roperties.

The `Writable` type is usefull when we want overwrite readonly properties and we still want to maintain code navigation/reference. It should be use instead of `any` type assertions for example.
…eadonly properties.

The `Writable` type is usefull when we want overwrite readonly properties and we still want to maintain code navigation/reference. It should be use instead of `any` type assertions for example.
…ly properties.

The `Writable` type is usefull when we want overwrite readonly properties and we still want to maintain code navigation/reference. It should be use instead of  type assertions.
@dylhunn
dylhunn removed the request for review from AndrewKushnir September 22, 2023 16:57
@dylhunn dylhunn added action: merge The PR is ready for merge by the caretaker target: minor This PR is targeted for the next minor release labels Sep 22, 2023
@pullapprove
pullapprove Bot requested a review from atscott September 22, 2023 16:58
@dylhunn

dylhunn commented Sep 22, 2023

Copy link
Copy Markdown
Contributor

g3 presubmit is passing.

@dylhunn dylhunn added merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note PullApprove: disable labels Sep 22, 2023
@dylhunn

dylhunn commented Sep 22, 2023

Copy link
Copy Markdown
Contributor

disabling pullapprove -- router change is a no-op

@dylhunn
dylhunn removed the request for review from atscott September 22, 2023 17:01
@dylhunn

dylhunn commented Sep 22, 2023

Copy link
Copy Markdown
Contributor

This PR was merged into the repository by commit e5d327d.

@dylhunn dylhunn closed this in ca416b5 Sep 22, 2023
dylhunn pushed a commit that referenced this pull request Sep 22, 2023
…operties. (#49754)

The `Writable` type is usefull when we want overwrite readonly properties and we still want to maintain code navigation/reference. It should be use instead of `any` type assertions for example.

PR Close #49754
dylhunn pushed a commit that referenced this pull request Sep 22, 2023
…perties. (#49754)

The `Writable` type is usefull when we want overwrite readonly properties and we still want to maintain code navigation/reference. It should be use instead of `any` type assertions for example.

PR Close #49754
dylhunn pushed a commit that referenced this pull request Sep 22, 2023
…roperties. (#49754)

The `Writable` type is usefull when we want overwrite readonly properties and we still want to maintain code navigation/reference. It should be use instead of `any` type assertions for example.

PR Close #49754
dylhunn pushed a commit that referenced this pull request Sep 22, 2023
…eadonly properties. (#49754)

The `Writable` type is usefull when we want overwrite readonly properties and we still want to maintain code navigation/reference. It should be use instead of `any` type assertions for example.

PR Close #49754
dylhunn pushed a commit that referenced this pull request Sep 22, 2023
…ly properties. (#49754)

The `Writable` type is usefull when we want overwrite readonly properties and we still want to maintain code navigation/reference. It should be use instead of  type assertions.

PR Close #49754
@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 Oct 23, 2023
ChellappanRajan pushed a commit to ChellappanRajan/angular that referenced this pull request Jan 23, 2024
The `Writable` type is usefull when we want overwrite readonly properties and we still want to maintain code navigation/reference. It should be use instead of `any` type assertion for example.

PR Close angular#49754
ChellappanRajan pushed a commit to ChellappanRajan/angular that referenced this pull request Jan 23, 2024
…operties. (angular#49754)

The `Writable` type is usefull when we want overwrite readonly properties and we still want to maintain code navigation/reference. It should be use instead of `any` type assertions for example.

PR Close angular#49754
ChellappanRajan pushed a commit to ChellappanRajan/angular that referenced this pull request Jan 23, 2024
…perties. (angular#49754)

The `Writable` type is usefull when we want overwrite readonly properties and we still want to maintain code navigation/reference. It should be use instead of `any` type assertions for example.

PR Close angular#49754
ChellappanRajan pushed a commit to ChellappanRajan/angular that referenced this pull request Jan 23, 2024
…roperties. (angular#49754)

The `Writable` type is usefull when we want overwrite readonly properties and we still want to maintain code navigation/reference. It should be use instead of `any` type assertions for example.

PR Close angular#49754
ChellappanRajan pushed a commit to ChellappanRajan/angular that referenced this pull request Jan 23, 2024
…eadonly properties. (angular#49754)

The `Writable` type is usefull when we want overwrite readonly properties and we still want to maintain code navigation/reference. It should be use instead of `any` type assertions for example.

PR Close angular#49754
ChellappanRajan pushed a commit to ChellappanRajan/angular that referenced this pull request Jan 23, 2024
…ly properties. (angular#49754)

The `Writable` type is usefull when we want overwrite readonly properties and we still want to maintain code navigation/reference. It should be use instead of  type assertions.

PR Close angular#49754
@JeanMeche
JeanMeche deleted the chore/use-writable branch February 29, 2024 13:39
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 merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note PullApprove: disable target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants