Skip to content

Add stream.finished/helpers and events utilities - #201

Merged
kevinresol merged 2 commits into
HaxeFoundation:masterfrom
kevinresol:feat/stream-events-utils
Jul 13, 2026
Merged

Add stream.finished/helpers and events utilities#201
kevinresol merged 2 commits into
HaxeFoundation:masterfrom
kevinresol:feat/stream-events-utils

Conversation

@kevinresol

Copy link
Copy Markdown
Contributor

Summary

  • Add Stream.finished (callback and Promise overloads) plus isReadable / isWritable / isDestroyed / isDisturbed / isErrored helpers
  • Add events utilities on Events and matching EventEmitter statics: errorMonitor, captureRejectionSymbol, getEventListeners, setMaxListeners, listenerCount

Test plan

  • haxe completion.hxml succeeds
  • Spot-check typings against Node docs for stream.finished / helpers and events statics

Made with Cursor

kevinresol and others added 2 commits July 13, 2026 22:21
Expose Node stream.finished, stream type helpers, and events module/EventEmitter statics (errorMonitor, getEventListeners, setMaxListeners, etc.).

Co-authored-by: Cursor <cursoragent@cursor.com>
Fix finished callback return type and options (signal/cleanup), isReadable/isWritable nullability, document isDestroyed/isDisturbed accurately, add Readable.isDisturbed and events.getMaxListeners.

Co-authored-by: Cursor <cursoragent@cursor.com>
@kevinresol

Copy link
Copy Markdown
Contributor Author

ready to merge

@kevinresol
kevinresol merged commit 7f3a07a into HaxeFoundation:master Jul 13, 2026
@kevinresol
kevinresol deleted the feat/stream-events-utils branch July 15, 2026 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant