Commit dfed36c
committed
feat(dsl): add .array() method for type-safe array creation in workflow steps
Implement a new .array() method in the Flow class to enable type-safe, semantic array
steps that leverage existing validation and dependency mechanisms.
The change includes
type constraints to enforce array return types, comprehensive runtime and type tests,
and detailed documentation.
This enhancement maintains full feature parity with .step()
and integrates seamlessly with existing validation utilities, laying the foundation for
future phases involving queue routing and advanced type inference.
The implementation
follows the principle of minimal, non-breaking extension, ensuring zero risk to current
functionality and providing immediate compile-time safety benefits.1 parent c5399ae commit dfed36c
File tree
6 files changed
+1654
-0
lines changed- .changeset
- pkgs/dsl
- __tests__
- integration
- runtime
- types
- src
6 files changed
+1654
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
0 commit comments