Skip to content

fix(compiler): small improvement to error message handling#63254

Closed
Vikash9546 wants to merge 1 commit intomicrosoft:mainfrom
Vikash9546:fix/compiler-comment-typos
Closed

fix(compiler): small improvement to error message handling#63254
Vikash9546 wants to merge 1 commit intomicrosoft:mainfrom
Vikash9546:fix/compiler-comment-typos

Conversation

@Vikash9546
Copy link

@Vikash9546 Vikash9546 commented Mar 16, 2026

  • Problem: Minor misspellings in internal compiler comments reduced readability for maintainers.
  • Usefulness: Improves clarity when reviewing checker logic; no behavior or API changes.
  • Files: src/compiler/checker.ts (comment-only updates)
  • Tests: None; behavior unchanged.

Copilot AI review requested due to automatic review settings March 16, 2026 09:26
@github-project-automation github-project-automation bot moved this to Not started in PR Backlog Mar 16, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR corrects several spelling mistakes across the TypeScript compiler and service code, improving readability/maintainability without changing runtime behavior or public APIs.

Changes:

  • Fixes misspellings in internal comments (e.g. “seperately/separator/occurrences/occurred/overridden”).
  • Fixes misspellings in local identifier names (e.g. *Seperated**Separated*, *Seperator**Separator*).

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/services/codefixes/addMissingConst.ts Renames a misspelled local helper to ...CommaSeparatedInitializer.
src/compiler/utilities.ts Fixes spelling in doc/comments related to extensions and numeric separators.
src/compiler/moduleNameResolver.ts Fixes spelling in a comment (“directory separator”).
src/compiler/commandLineParser.ts Renames a misspelled local variable to lastDirectorySeparatorIndex.
src/compiler/checker.ts Fixes spelling in several internal comments.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines 14739 to 14743
) {
// A reverse mapping of `{[K in keyof T[K_1]]: T[K_1]}` is the same as that of `{[K in keyof T]: T}`, since all we care about is
// inferring to the "type parameter" (or indexed access) shared by the constraint and template. So, to reduce the number of
// type identities produced, we simplify such indexed access occurences
// type identities produced, we simplify such indexed access occurrences
const newTypeParam = (type.constraintType.type as IndexedAccessType).objectType;
@MartinJohns
Copy link
Contributor

From the Pull Request Template:

** Please don't send typo fixes! **
Please don't send a PR solely for the purpose of fixing a typo, unless that typo truly hurts understanding of the text. Each PR represents work for the maintainers, and that work should provide commensurate value.

@typescript-bot
Copy link
Collaborator

With 6.0 out as the final release vehicle for this codebase, we're closing all PRs that don't fit the merge criteria for post-6.0 patches. If you think this was a mistake and this PR fits the post-6.0 patch criteria, please post to the 6.0 iteration issue with details (specifically, which PR and which patch criteria it satisfies).

Next steps for PRs:

  • For crash bugfixes or language service improvements, PRs are currently accepted at the typescript-go repo
  • Changes to type system behavior should wait until after 7.0, at which point mainline TypeScript development will resume in this repository with the Go codebase
  • Library file updates (lib.d.ts etc) continue to live in this repo or the DOM Generator repo as appropriate

@github-project-automation github-project-automation bot moved this from Not started to Done in PR Backlog Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants