Skip to content
This repository was archived by the owner on Sep 1, 2026. It is now read-only.

Update CHANGES.md to reflect #2513 - #2541

Merged
Jake Bailey (jakebailey) merged 3 commits into
mainfrom
update-changes-md
Jan 27, 2026
Merged

Jake Bailey (jakebailey) merged 3 commits into
mainfrom
update-changes-md

Conversation

@ahejlsberg

Copy link
Copy Markdown
Member

No description provided.

Copilot AI 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.

Pull request overview

This PR updates the CHANGES.md documentation to reflect the implementation of issue #2513, which relates to handling CommonJS exports initialized to undefined. The changes primarily reorganize and update documentation about implemented features and behavior changes.

Changes:

  • Removed "Features yet to be implemented" section for Object.defineProperty on CommonJS exports (now implemented)
  • Updated @typedef/xxxx (@callback) behavior description to reflect hoisting semantics
  • Replaced removed CommonJS limitations with documentation about the new undefined initialization pattern support

Comment thread CHANGES.md Resolved
Comment thread CHANGES.md Outdated
#### Initializing exports to `undefined`:

If you can't configure your package to use ESM syntax, you can use destructuring instead:
To accomodate the pattern of initializing CommonJS exports to `undefined` (sometimes written as `void 0`) and then subseqently assigning their intended values, when CommonJS exports have multiple assignments and an initial assignment of `undefined`, the `undefined` is ignored when determining the type of the export.

Copilot AI Jan 18, 2026

Copy link

Choose a reason for hiding this comment

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

Spelling error: "subseqently" should be spelled "subsequently".

Suggested change
To accomodate the pattern of initializing CommonJS exports to `undefined` (sometimes written as `void 0`) and then subseqently assigning their intended values, when CommonJS exports have multiple assignments and an initial assignment of `undefined`, the `undefined` is ignored when determining the type of the export.
To accomodate the pattern of initializing CommonJS exports to `undefined` (sometimes written as `void 0`) and then subsequently assigning their intended values, when CommonJS exports have multiple assignments and an initial assignment of `undefined`, the `undefined` is ignored when determining the type of the export.

Copilot uses AI. Check for mistakes.
@ahejlsberg
Anders Hejlsberg (ahejlsberg) added this pull request to the merge queue Jan 27, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Jan 27, 2026
@jakebailey
Jake Bailey (jakebailey) added this pull request to the merge queue Jan 27, 2026
Merged via the queue into main with commit 8e3f72a Jan 27, 2026
@jakebailey
Jake Bailey (jakebailey) deleted the update-changes-md branch January 27, 2026 20:15
Copilot AI pushed a commit that referenced this pull request Feb 25, 2026
Jake Bailey (jakebailey) pushed a commit to jakebailey/TypeScript that referenced this pull request Aug 13, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants