-
Notifications
You must be signed in to change notification settings - Fork 759
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
Allow custom types on module outputs #9570
Labels
enhancement
New feature or request
intermediate language
Related to the intermediate language
type system
Milestone
Comments
ghost
added
the
Needs: Triage 🔍
label
Jan 18, 2023
stephaniezyen
added
the
intermediate language
Related to the intermediate language
label
Feb 1, 2023
Hi @santo2, The I'll edit the |
ok thanks for the feedback, guess I'll have to wait a bit longer :-) |
ghost
locked as resolved and limited conversation to collaborators
May 24, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
enhancement
New feature or request
intermediate language
Related to the intermediate language
type system
I have a lot of modules, that, because of scoping, looping and organizational complexity pass a bunch of variables from the outputs back to the caller. Especially once I'm able to define these custom types in one place and import them around the solution, I'd like to be able to apply the outputs of a module as a custom type so I might trivially pass the output from the module into a parameter of another module using the same type rather than having to manually map it regularly on either end.
Especially if I'm able to rely on explicit and implicit validation on the values passed into these custom types, this would go a long way towards eliminating development error and assumptions about the values being shuffled between modules that violate constraints on dependencies.
An example of what I'd like to see (mixing one of my linked asks to simplify the example):
This would go a long way to not only bundle like-values into a single discrete type for downstream use from the output, but would also work to eliminate development-time errors (especially invalid scope assignments) by ensuring that when the input parameters require the type derived from an output, I just return that value directly from said output and eliminate an opportunity to mis-map that in some manner.
The text was updated successfully, but these errors were encountered: