From 6e78a7811b48458214456426fd291b59df7ca52b Mon Sep 17 00:00:00 2001 From: Eric Jizba Date: Mon, 13 Nov 2023 10:21:23 -0800 Subject: [PATCH] Fix bug when using shared output object (#193) --- src/app.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app.ts b/src/app.ts index ea1392a..4473f1a 100644 --- a/src/app.ts +++ b/src/app.ts @@ -164,8 +164,7 @@ export function generic(name: string, options: GenericFunctionOptions): void { } if (options.return) { - options.return.name = returnBindingKey; - bindings[options.return.name] = { + bindings[returnBindingKey] = { ...options.return, direction: 'out', };