From 113774791ef0855c7afc19ad69b0b878cf263bdc Mon Sep 17 00:00:00 2001 From: Arian Sobczak Date: Fri, 21 Jan 2022 11:16:41 +0100 Subject: [PATCH] fix: removed fillMethodComment duplicate after merge --- typescript/type-converter.js | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/typescript/type-converter.js b/typescript/type-converter.js index ea84286..bef5f51 100644 --- a/typescript/type-converter.js +++ b/typescript/type-converter.js @@ -100,31 +100,6 @@ const fillMethodComment = (comment, member, src) => { return comment } -/** - * Fill missing method declaration - * - * @param {string} comment - * @param member - * @param {string} src - * @return {string} - */ -const fillMethodComment = (comment, member, src) => { - if (!comment.includes('@method')) { - comment = appendComment(comment, '@method') - } - if (!comment.includes('@param')) { - comment = convertParams(comment, member, src) - } - if (ts.isArrayTypeNode(member.type)) { - comment = convertMembers(comment, member.type, src) - } - if (!comment.includes('@return')) { - const returnType = getTypeName(member.type, src) - comment = appendComment(comment, `@return {${returnType}}`) - } - return comment -} - /** * converts function parameters to @params *