-
Notifications
You must be signed in to change notification settings - Fork 15
feat: improve type safety for flow step outputs and skippable dependencies #583
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: 01-06-add_stepmeta_type_structure_for_skippable_deps_tracking
Are you sure you want to change the base?
Conversation
|
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
|
View your CI Pipeline Execution ↗ for commit 6be7361
☁️ Nx Cloud last updated this comment at |
238c72d to
bb09b62
Compare
…ippability detection
bb09b62 to
6be7361
Compare
14ed89d to
af7d04a
Compare

Improved Type Safety for Flow Steps and Skippable Dependencies
This PR enhances the type system for Flow steps and skippable dependencies:
Refactored
ExtractFlowStepsto return step slugs as keys, and introduced a newStepOutput<>utility type to get the output type from a specific step.Updated type tests to use the new
StepOutput<>type for accessing step output types, providing a clearer and more consistent API.Added comprehensive compile-time error tests for skippable dependencies to ensure TypeScript correctly rejects invalid patterns:
whenUnmet: 'skip'andretriesExhausted: 'skip'optionsThese changes improve the developer experience by providing better type safety and clearer error messages when working with potentially skipped steps in flows.