From 6213cccd0abc8b3ccddc7486f53e80ad8ea50838 Mon Sep 17 00:00:00 2001 From: Ido Rosenthal Date: Sun, 1 Oct 2023 16:34:53 +0300 Subject: [PATCH] fix(review): change type to reflect any function --- packages/core/src/functions.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/core/src/functions.ts b/packages/core/src/functions.ts index 0cee6cf39..13a4ccda2 100644 --- a/packages/core/src/functions.ts +++ b/packages/core/src/functions.ts @@ -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,