From 036a59c8fa98b3d6327cbef53ea8ceecb88b9f12 Mon Sep 17 00:00:00 2001 From: e11sy <130844513+e11sy@users.noreply.github.com> Date: Thu, 17 Oct 2024 19:26:20 +0300 Subject: [PATCH] jsdoc improved --- src/components/utils/blocks.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/utils/blocks.ts b/src/components/utils/blocks.ts index b573b90de..710cfa5f8 100644 --- a/src/components/utils/blocks.ts +++ b/src/components/utils/blocks.ts @@ -174,12 +174,13 @@ export function convertBlockDataToString(blockData: BlockToolData, conversionCon * * @param stringToImport - string to convert * @param conversionConfig - tool's conversion config + * @param targetToolConfig - target tool config, used in conversionConfig.import method */ -export function convertStringToBlockData(stringToImport: string, conversionConfig?: ConversionConfig, config?: ToolConfig): BlockToolData { +export function convertStringToBlockData(stringToImport: string, conversionConfig?: ConversionConfig, targetToolConfig?: ToolConfig): BlockToolData { const importProp = conversionConfig?.import; if (isFunction(importProp)) { - return importProp(stringToImport, config); + return importProp(stringToImport, targetToolConfig); } else if (isString(importProp)) { return { [importProp]: stringToImport,