Closed mildronize closed 1 year ago
I've done PoC on main.issues-46
type utils
binding.inferReturn<typeof bindings> // get return bindings
binding.inferOutput<typeof bindings> // get all output bindings
binding.inferInput<typeof bindings> // get all input bindings
binding.infer<typeof bindings> // get all bindings
Already fixed in #61
Previously, we need to use
Partial
type to wrap theGetBindings
type, for multiple return typemultiple outputs Return binding:
https://learn.microsoft.com/en-us/azure/azure-functions/functions-reference-node?tabs=v2-v3-v4-export%2Cv2-v3-v4-done%2Cv2%2Cv2-log-custom-telemetry%2Cv2-accessing-request-and-response%2Cwindows-setting-the-node-version#outputs
as shown in the doc:
Expected Behavior
We want the
GetOutputBindings
to remove allinput
directionSo, we can you like this:
Todo