Skip to content

Commit

Permalink
Remove some any types
Browse files Browse the repository at this point in the history
  • Loading branch information
melikhov-dev committed Jan 10, 2025
1 parent 39bcfd2 commit 853b6fd
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export class Processor {
const onCodeExecuted = chartsEngine.telemetryCallbacks.onCodeExecuted || (() => {});
const onTabsExecuted = chartsEngine.telemetryCallbacks.onTabsExecuted || (() => {});

function injectConfigAndParams({target}: {target: Record<string, any>}) {
function injectConfigAndParams({target}: {target: ProcessorSuccessResponse}) {
let responseConfig;
const useChartsEngineResponseConfig = Boolean(
isEnabledServerFeature(ctx, Feature.UseChartsEngineResponseConfig),
Expand Down Expand Up @@ -727,7 +727,7 @@ export class Processor {

ctx.log('EditorEngine::JS', {duration: getDuration(hrStart)});

processedData = jsTabResults.exports as Record<string, any>;
processedData = jsTabResults.exports;
logs.JavaScript = jsTabResults.logs;

const jsError = jsTabResults.runtimeMetadata.error;
Expand Down Expand Up @@ -802,7 +802,7 @@ export class Processor {
injectLogs({target: result});

if (!uiOnly && jsTabResults) {
result.data = processedData;
result.data = processedData as ProcessorSuccessResponse['data'];
let resultConfig = merge(
{},
userConfig,
Expand Down

0 comments on commit 853b6fd

Please sign in to comment.