-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Simplify async iterator types #61733
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
@tpgusgh please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
(This proposal goes against the direction of travel – see microsoft/TypeScript-DOM-lib-generator#1713 for context.) |
Fixes #xxxx
Summary
Refactored
FileSystemDirectoryHandle
andReadableStream
async iterator definitions to:AsyncIteratorObject
,BuiltinIteratorReturn
)AsyncIterableIterator<T>
utility type for clarity and DRY complianceReadableStreamIteratorOptions
interfaceThese changes ensure more consistent typings and better compatibility with existing TypeScript async iteration patterns.