Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Remove default onData for transformByHandlers #187

Merged
merged 1 commit into from
Jun 13, 2024
Merged

Conversation

natebosch
Copy link
Contributor

Towards dart-lang/tools#1771

The default callback is not used in practice outside of tests, but it
included a cast to satisfy the type signature which looks worrying for
this type of library.

Make the callback required and add explicit callbacks (without a cast
since the types are consistent) in the tests which used it.

Towards #111

The default callback is not used in practice outside of tests, but it
included a cast to satisfy the type signature which looks worrying for
this type of library.

Make the callback required and add explicit callbacks (without a cast
since the types are consistent) in the tests which used it.
@natebosch natebosch requested a review from lrhn June 12, 2024 23:05
Copy link
Contributor

@lrhn lrhn left a comment

Choose a reason for hiding this comment

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

Good fix.

(I'll have more comments, but this one was the first I noticed.)

@natebosch natebosch merged commit a1f8da1 into master Jun 13, 2024
4 checks passed
@natebosch natebosch deleted the drop-cast branch June 13, 2024 18:09
mosuem pushed a commit to dart-lang/tools that referenced this pull request Dec 11, 2024
…ansform#187)

Towards dart-lang/stream_transform#111

The default callback is not used in practice outside of tests, but it
included a cast to satisfy the type signature which looks worrying for
this type of library.

Make the callback required and add explicit callbacks (without a cast
since the types are consistent) in the tests which used it.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants