Skip to content

Commit

Permalink
Code review return: Baptiste
Browse files Browse the repository at this point in the history
  • Loading branch information
martmull committed Nov 8, 2024
1 parent d9ed235 commit d6917a5
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
UnionTypeNode,
VariableStatement,
ArrowFunction,
FunctionDeclaration,
} from 'typescript';

import { generateFakeValue } from 'src/engine/utils/generate-fake-value';
Expand Down Expand Up @@ -53,11 +54,11 @@ export class CodeIntrospectionService {

sourceFile.forEachChild((node) => {
if (node.kind === SyntaxKind.FunctionDeclaration) {
const funcNode = node as any;
const funcNode = node as FunctionDeclaration;
const params = funcNode.parameters;

params.forEach((param: any) => {
const paramName = param.name.text;
params.forEach((param) => {
const paramName = param.name.getText();
const typeNode = param.type;

if (typeNode) {
Expand Down

0 comments on commit d6917a5

Please sign in to comment.