Skip to content

Commit

Permalink
Fix positional args in TS (#488)
Browse files Browse the repository at this point in the history
Positional args don't generate with the right parameter name
  • Loading branch information
hellovai authored Mar 20, 2024
1 parent 35d0901 commit 72fb12d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function create{{name}}Instance(): I{{name}} & {{name}}Function {
}) => {
{{/if}}
{{#if default_impl}}
return wrapper.getImpl('{{default_impl}}').run(params);
return wrapper.getImpl('{{default_impl}}').run({{#if params.positional}}{{params.name}}{{else}}params{{/if}});
{{else}}
throw new Error('No implementation for {{name}}');
{{/if}}
Expand Down

0 comments on commit 72fb12d

Please sign in to comment.