Skip to content

refactor: explicitly ensure ngDevMode types are available#61365

Closed
devversion wants to merge 1 commit intoangular:mainfrom
devversion:primitives-change
Closed

refactor: explicitly ensure ngDevMode types are available#61365
devversion wants to merge 1 commit intoangular:mainfrom
devversion:primitives-change

Conversation

@devversion
Copy link
Copy Markdown
Member

This commit adds an import to the ng_dev_mode.ts file that augments global to have types for ngDevMode.

Notably this change is currently not needed because the file is loaded by ts_library through tsconfig#files— but in a separate PR we are switching the target to ts_project which no longer loads all Bazel dependency files via tsconfig#files; resulting in the ambient types no longer magically being available.

This commit adds an import to the `ng_dev_mode.ts` file that augments
`global` to have types for `ngDevMode`.

Notably this change is currently not needed because the file is loaded
by `ts_library` through `tsconfig#files`— but in a separate PR we are
switching the target to `ts_project` which no longer loads all Bazel
dependency files via `tsconfig#files`; resulting in the ambient types no
longer magically being available.
@devversion devversion requested a review from thePunderWoman May 15, 2025 11:30
@devversion devversion 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 labels May 15, 2025
@devversion
Copy link
Copy Markdown
Member Author

Caretaker note: Before syncing, we should submit cl/759088341

Copy link
Copy Markdown
Contributor

@thePunderWoman thePunderWoman left a comment

Choose a reason for hiding this comment

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

LGTM

@thePunderWoman
Copy link
Copy Markdown
Contributor

Caretaker note: due to g3patches, this doesn't actually affect any of the shared primitives. So no TGP should be needed. This is safe to merge as is.

@devversion devversion marked this pull request as ready for review May 15, 2025 12:36
@pullapprove pullapprove bot requested a review from csmick May 15, 2025 12:36
@pullapprove pullapprove bot added the requires: TGP This PR requires a passing TGP before merging is allowed label May 15, 2025
@devversion devversion added action: merge The PR is ready for merge by the caretaker merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note and removed action: review The PR is still awaiting reviews from at least one requested reviewer requires: TGP This PR requires a passing TGP before merging is allowed labels May 15, 2025
@pullapprove pullapprove bot added requires: TGP This PR requires a passing TGP before merging is allowed merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note and removed merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note labels May 15, 2025
@devversion devversion removed the request for review from csmick May 15, 2025 12:42
thePunderWoman pushed a commit that referenced this pull request May 15, 2025
This commit adds an import to the `ng_dev_mode.ts` file that augments
`global` to have types for `ngDevMode`.

Notably this change is currently not needed because the file is loaded
by `ts_library` through `tsconfig#files`— but in a separate PR we are
switching the target to `ts_project` which no longer loads all Bazel
dependency files via `tsconfig#files`; resulting in the ambient types no
longer magically being available.

PR Close #61365
thePunderWoman pushed a commit that referenced this pull request May 15, 2025
This commit adds an import to the `ng_dev_mode.ts` file that augments
`global` to have types for `ngDevMode`.

Notably this change is currently not needed because the file is loaded
by `ts_library` through `tsconfig#files`— but in a separate PR we are
switching the target to `ts_project` which no longer loads all Bazel
dependency files via `tsconfig#files`; resulting in the ambient types no
longer magically being available.

PR Close #61365
@thePunderWoman
Copy link
Copy Markdown
Contributor

This PR was merged into the repository by commit ff62ff1.

The changes were merged into the following branches: main, 19.2.x, 20.0.x

@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 Jun 17, 2025
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 merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note PullApprove: disable requires: TGP This PR requires a passing TGP before merging is allowed target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants