Skip to content

Commit

Permalink
fix: removed fillMethodComment duplicate after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
ariansobczak-rst committed Jan 21, 2022
1 parent d8c5a78 commit 1137747
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions typescript/type-converter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down

0 comments on commit 1137747

Please sign in to comment.