Skip to content

Commit

Permalink
fix(review): change type to reflect any function
Browse files Browse the repository at this point in the history
  • Loading branch information
idoros committed Oct 1, 2023
1 parent d64bcdc commit 6213ccc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core/src/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,9 @@ export function processDeclarationValue(
const formatterArgs = getFormatterArgs(parsedNode);
try {
// ToDo: check if function instead of calling on a non function
parsedNode.resolvedValue = (formatter.symbol as Function)(...formatterArgs);
parsedNode.resolvedValue = (formatter.symbol as (...args: any[]) => any)(
...formatterArgs
);
if (evaluator.valueHook && typeof parsedNode.resolvedValue === 'string') {
parsedNode.resolvedValue = evaluator.valueHook(
parsedNode.resolvedValue,
Expand Down

0 comments on commit 6213ccc

Please sign in to comment.