Skip to content

Commit

Permalink
Merge pull request #20825 from Windvis/generate-plain-function-helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
kategengler authored Jan 13, 2025
2 parents 77200c1 + eccc9e1 commit f62c4c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
8 changes: 3 additions & 5 deletions blueprints/helper/files/__root__/helpers/__name__.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { helper } from '@ember/component/helper';

export default helper(function <%= camelizedModuleName %>(positional /*, named*/) {
return positional;
});
export default function <%= camelizedModuleName %>(positionalA /*, positionalB, named*/) {
return positionalA;
}
8 changes: 3 additions & 5 deletions node-tests/fixtures/helper/helper.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { helper } from '@ember/component/helper';

export default helper(function fooBarBaz(positional /*, named*/) {
return positional;
});
export default function fooBarBaz(positionalA /*, positionalB, named*/) {
return positionalA;
}

0 comments on commit f62c4c8

Please sign in to comment.