@@ -17,7 +17,6 @@ const actingHelpers = [...require('../plugin/standardActingHelpers'), 'REST'];
17
17
* @param {Map } params.supportObject
18
18
* @param {Array<string> } params.helperNames
19
19
* @param {Array<string> } params.importPaths
20
- * @param {Array<string> } params.customHelpers
21
20
* @param params.translations
22
21
*
23
22
* @returns {string }
@@ -29,15 +28,13 @@ const getDefinitionsFileContent = ({
29
28
supportObject,
30
29
importPaths,
31
30
translations,
32
- customHelpers,
33
31
} ) => {
34
32
const getHelperListFragment = ( {
35
33
hasCustomHelper,
36
34
hasCustomStepsFile,
37
- customHelpers,
38
35
} ) => {
39
36
if ( hasCustomHelper && hasCustomStepsFile ) {
40
- return `${ [ 'ReturnType<steps_file>' , ... customHelpers ] . join ( ', ' ) } ` ;
37
+ return `${ [ 'ReturnType<steps_file>' , 'WithTranslation<Methods>' ] . join ( ', ' ) } ` ;
41
38
}
42
39
43
40
if ( hasCustomStepsFile ) {
@@ -50,7 +47,6 @@ const getDefinitionsFileContent = ({
50
47
const helpersListFragment = getHelperListFragment ( {
51
48
hasCustomHelper,
52
49
hasCustomStepsFile,
53
- customHelpers,
54
50
} ) ;
55
51
56
52
const importPathsFragment = importPaths . join ( '\n' ) ;
@@ -143,7 +139,7 @@ module.exports = function (genPath, options) {
143
139
}
144
140
145
141
if ( ! actingHelpers . includes ( name ) ) {
146
- customHelpers . push ( `WithTranslation< ${ name } >` ) ;
142
+ customHelpers . push ( name ) ;
147
143
}
148
144
}
149
145
@@ -186,7 +182,6 @@ module.exports = function (genPath, options) {
186
182
translations,
187
183
hasCustomStepsFile,
188
184
hasCustomHelper,
189
- customHelpers,
190
185
} ) ;
191
186
192
187
// add aliases for translations
0 commit comments