Skip to content

Commit

Permalink
Positional args don't generate with the right parameter name
Browse files Browse the repository at this point in the history
Fix to use the correct param
  • Loading branch information
hellovai committed Mar 20, 2024
1 parent 35d0901 commit f02b747
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 f02b747

Please sign in to comment.