Skip to content

Commit 83a3f13

Browse files
committed
converting JS to TS v.3
1 parent 4703b28 commit 83a3f13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export const getHooksNames = (elementType : string) : Array<string> => {
6262
while (Object.hasOwnProperty.call(ast, 'body')) {
6363
let tsCount : number = 0; // Counter for the number of TypeScript hooks seen (to distinguish in masterState)
6464
ast = ast.body;
65-
const statements : Array<any> = [];
65+
const statements : Array<string> = [];
6666

6767
/** All module exports always start off as a single 'FunctionDeclaration' type
6868
* Other types: "BlockStatement" / "ExpressionStatement" / "ReturnStatement"

0 commit comments

Comments
 (0)