@@ -17,7 +17,6 @@ const actingHelpers = [...require('../plugin/standardActingHelpers'), 'REST'];
1717 * @param {Map } params.supportObject
1818 * @param {Array<string> } params.helperNames
1919 * @param {Array<string> } params.importPaths
20- * @param {Array<string> } params.customHelpers
2120 * @param params.translations
2221 *
2322 * @returns {string }
@@ -29,15 +28,13 @@ const getDefinitionsFileContent = ({
2928 supportObject,
3029 importPaths,
3130 translations,
32- customHelpers,
3331} ) => {
3432 const getHelperListFragment = ( {
3533 hasCustomHelper,
3634 hasCustomStepsFile,
37- customHelpers,
3835 } ) => {
3936 if ( hasCustomHelper && hasCustomStepsFile ) {
40- return `${ [ 'ReturnType<steps_file>' , ... customHelpers ] . join ( ', ' ) } ` ;
37+ return `${ [ 'ReturnType<steps_file>' , 'WithTranslation<Methods>' ] . join ( ', ' ) } ` ;
4138 }
4239
4340 if ( hasCustomStepsFile ) {
@@ -50,7 +47,6 @@ const getDefinitionsFileContent = ({
5047 const helpersListFragment = getHelperListFragment ( {
5148 hasCustomHelper,
5249 hasCustomStepsFile,
53- customHelpers,
5450 } ) ;
5551
5652 const importPathsFragment = importPaths . join ( '\n' ) ;
@@ -143,7 +139,7 @@ module.exports = function (genPath, options) {
143139 }
144140
145141 if ( ! actingHelpers . includes ( name ) ) {
146- customHelpers . push ( `WithTranslation< ${ name } >` ) ;
142+ customHelpers . push ( name ) ;
147143 }
148144 }
149145
@@ -186,7 +182,6 @@ module.exports = function (genPath, options) {
186182 translations,
187183 hasCustomStepsFile,
188184 hasCustomHelper,
189- customHelpers,
190185 } ) ;
191186
192187 // add aliases for translations
0 commit comments