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

restartableTask Should Populate Existing Task Types #84

Open
rtablada opened this issue Feb 20, 2024 · 1 comment
Open

restartableTask Should Populate Existing Task Types #84

rtablada opened this issue Feb 20, 2024 · 1 comment

Comments

@rtablada
Copy link

Currently trackedTask is showing a value of unknown without explicit types.

Ember concurrency allows teams to define Task return types already (or even have them inferred) so it would be nice for this to bubble through to trackedTask in order to reduce the excess flow of types and allow the use of inferred types (which would also allow typing to happen at the source instead of manual checks all the way through).

In the place where teams do choose to manually type their trackedTasks, this should in theory also give type checking in the case where the passed in task arg does not match the expected type signature

@NullVoxPopuli
Copy link
Contributor

sounds like a good thing to fix/support!

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

No branches or pull requests

2 participants