Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Simplify async iterator types#61733

Closed
tpgusgh wants to merge 1 commit into
microsoft:mainmicrosoft/TypeScript:mainfrom
tpgusgh:patch-1tpgusgh/TypeScript:patch-1Copy head branch name to clipboard
Closed

Simplify async iterator types#61733
tpgusgh wants to merge 1 commit into
microsoft:mainmicrosoft/TypeScript:mainfrom
tpgusgh:patch-1tpgusgh/TypeScript:patch-1Copy head branch name to clipboard

Conversation

@tpgusgh

@tpgusgh tpgusgh commented May 19, 2025

Copy link
Copy Markdown

Fixes #xxxx

Summary

Refactored FileSystemDirectoryHandle and ReadableStream async iterator definitions to:

  • Remove undefined or redundant types (AsyncIteratorObject, BuiltinIteratorReturn)
  • Use a shared AsyncIterableIterator<T> utility type for clarity and DRY compliance
  • Add missing ReadableStreamIteratorOptions interface
  • Improve readability and maintainability through consistent structure and comments

These changes ensure more consistent typings and better compatibility with existing TypeScript async iteration patterns.

@github-project-automation github-project-automation Bot moved this to Not started in PR Backlog May 19, 2025
@tpgusgh tpgusgh closed this May 19, 2025
@github-project-automation github-project-automation Bot moved this from Not started to Done in PR Backlog May 19, 2025
@tpgusgh tpgusgh reopened this May 19, 2025
@github-project-automation github-project-automation Bot moved this from Done to Not started in PR Backlog May 19, 2025
@Renegade334

Renegade334 commented May 20, 2025

Copy link
Copy Markdown
Contributor

Generated files

The DOM files ending in .generated.d.ts aren't meant to be edited by hand.

If you need to make changes to such files, make a change to the input files for our library generator.

(This proposal goes against the direction of travel – see microsoft/TypeScript-DOM-lib-generator#1713 for context.)

@jakebailey jakebailey closed this Jul 1, 2025
@github-project-automation github-project-automation Bot moved this from Not started to Done in PR Backlog Jul 1, 2025
@microsoft microsoft locked as resolved and limited conversation to collaborators Jan 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.