Skip to content
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

further refine incremental result types #4323

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

yaacovCR
Copy link
Contributor

@yaacovCR yaacovCR commented Jan 13, 2025

continue work with #4313

Fixes the types for Subsequent Execution Results. Currently, the generic argument for subsequent results is passed to deferred and streamed results. By providing two different generic arguments, we can get properly types individual members of the incremental array.

@yaacovCR yaacovCR requested a review from a team as a code owner January 13, 2025 11:26
@yaacovCR yaacovCR added the PR: bug fix 🐞 requires increase of "patch" version number label Jan 13, 2025
Copy link

netlify bot commented Jan 13, 2025

Deploy Preview for compassionate-pike-271cb3 ready!

Name Link
🔨 Latest commit 181b45e
🔍 Latest deploy log https://app.netlify.com/sites/compassionate-pike-271cb3/deploys/6784f85308fa700008e4161b
😎 Deploy Preview https://deploy-preview-4323--compassionate-pike-271cb3.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@yaacovCR yaacovCR requested a review from robrichard January 13, 2025 11:26
Copy link

Hi @yaacovCR, I'm @github-actions bot happy to help you with this PR 👋

Supported commands

Please post this commands in separate comments and only one per comment:

  • @github-actions run-benchmark - Run benchmark comparing base and merge commits for this PR
  • @github-actions publish-pr-on-npm - Build package from this PR and publish it on NPM

use TIncrementalItem instead of TItems

to constrain to ReadonlyArray of TIncrementalItem
@yaacovCR
Copy link
Contributor Author

This PR fixes the types for Subsequent Execution Results by splitting up the generics between the deferred result data and the streamed item type, so that the constituent types can now be properly typed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: bug fix 🐞 requires increase of "patch" version number
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants