Skip to content

Commit

Permalink
jsdoc improved
Browse files Browse the repository at this point in the history
  • Loading branch information
e11sy committed Oct 17, 2024
1 parent 5a7a928 commit 036a59c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/utils/blocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 036a59c

Please sign in to comment.