Skip to content

Commit

Permalink
Remove the helper wrapper from the helper generator
Browse files Browse the repository at this point in the history
Plain function helpers have been supported since ember-source 4.5 so we no longer need the wrapping `helper` call.
  • Loading branch information
Windvis committed Jan 13, 2025
1 parent 77200c1 commit 15f4abe
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 15f4abe

Please sign in to comment.