@@ -99,13 +99,13 @@ class FileFormService {
9999 }
100100
101101 /**
102- * @param {string } path
102+ * @param {string } filepath
103103 * @returns {Promise<FormDefinition> }
104104 */
105105 // eslint-disable-next-line @typescript-eslint/require-await
106- async readFormDefintion ( path ) {
106+ async readFormDefintion ( filepath ) {
107107 throw new Error (
108- `Error reading path '${ path } '. 'readFormDefintion' not implemented in abstract class`
108+ `Error reading path '${ filepath } '. 'readFormDefintion' not implemented in abstract class`
109109 )
110110 }
111111
@@ -153,15 +153,15 @@ export class JsonFileFormService extends FileFormService {
153153 }
154154
155155 /**
156- * @param {string } path
156+ * @param {string } filepath
157157 * @returns {Promise<FormDefinition> }
158158 */
159- async readFormDefintion ( path ) {
159+ async readFormDefintion ( filepath ) {
160160 /**
161161 * @type {FormDefinition }
162162 */
163163 // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
164- const definition = JSON . parse ( await fs . readFile ( path , 'utf8' ) )
164+ const definition = JSON . parse ( await fs . readFile ( filepath , 'utf8' ) )
165165
166166 return definition
167167 }
@@ -180,15 +180,15 @@ export class YamlFileFormService extends FileFormService {
180180 }
181181
182182 /**
183- * @param {string } path
183+ * @param {string } filepath
184184 * @returns {Promise<FormDefinition> }
185185 */
186- async readFormDefintion ( path ) {
186+ async readFormDefintion ( filepath ) {
187187 /**
188188 * @type {FormDefinition }
189189 */
190190 // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
191- const definition = YAML . parse ( await fs . readFile ( path , 'utf8' ) )
191+ const definition = YAML . parse ( await fs . readFile ( filepath , 'utf8' ) )
192192
193193 return definition
194194 }
0 commit comments