Skip to content

Conversation

@DanielRosenwasser
Copy link
Member

This is a small set of fixes for what's mainly noImplicitThis and strictPropertyInitialization. I didn't change everything - I think we should actually just deal with most of the noImplicitThis errors.

Part of #62333.

Copilot AI review requested due to automatic review settings January 20, 2026 23:33
@github-project-automation github-project-automation bot moved this to Not started in PR Backlog Jan 20, 2026
@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Jan 20, 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 addresses test suite compatibility with stricter TypeScript compiler settings, specifically targeting noImplicitThis and strictPropertyInitialization errors. The changes ensure that test cases can run under stricter mode defaults while still testing the intended behaviors.

Changes:

  • Modified two fourslash tests to avoid strictPropertyInitialization issues by changing class patterns to interfaces or constructors
  • Added @strict: false or @noImplicitThis: false directives to 11 compiler test files that intentionally test non-strict behaviors
  • Added @strictPropertyInitialization: false to a test that needs uninitialized class properties

Reviewed changes

Copilot reviewed 16 out of 16 changed files in this pull request and generated no comments.

Show a summary per file
File Description
fixExactOptionalUnassignableProperties12.ts Changed from class with instantiation to interface with declare to avoid property initialization requirements
fixExactOptionalUnassignableProperties11.ts Changed property assignment from method to constructor to satisfy property initialization rules
parserModifierOnStatementInBlock1.ts Added @strict: false to allow this in global scope
interfaceExtendsObjectIntersectionErrors.ts Added @strictPropertyInitialization: false to allow uninitialized properties in test classes
noParameterReassignmentJSIIFE.ts Added @noImplicitThis: false for test using this in function
lambdaPropSelf.ts Added @strict: false for test using this in various contexts
declarationEmitPromise.ts Added @noImplicitThis: false for test using this with apply
collisionThisExpressionAndVarInGlobal.ts Added @strict: false for collision test with global this
collisionThisExpressionAndModuleInGlobal.ts Added @strict: false for collision test with global this
collisionThisExpressionAndFunctionInGlobal.ts Added @strict: false for collision test with global this
collisionThisExpressionAndEnumInGlobal.ts Added @strict: false for collision test with global this
collisionThisExpressionAndClassInGlobal.ts Added @strict: false for collision test with global this
collisionThisExpressionAndAmbientVarInGlobal.ts Added @strict: false for collision test with global this
collisionThisExpressionAndAmbientClassInGlobal.ts Added @strict: false for collision test with global this
collisionThisExpressionAndAliasInGlobal.ts Added @strict: false for collision test with global this
blockScopedBindingCaptureThisInFunction.ts Added @strict: false for test capturing this in function

@github-project-automation github-project-automation bot moved this from Not started to Needs merge in PR Backlog Jan 21, 2026
@DanielRosenwasser DanielRosenwasser added this pull request to the merge queue Jan 21, 2026
Merged via the queue into main with commit 58ed4bc Jan 21, 2026
38 of 39 checks passed
@DanielRosenwasser DanielRosenwasser deleted the moreStrictnessFixups branch January 21, 2026 00:29
@github-project-automation github-project-automation bot moved this from Needs merge to Done in PR Backlog Jan 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants