Skip to content

Commit 1137747

Browse files
fix: removed fillMethodComment duplicate after merge
1 parent d8c5a78 commit 1137747

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

typescript/type-converter.js

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -100,31 +100,6 @@ const fillMethodComment = (comment, member, src) => {
100100
return comment
101101
}
102102

103-
/**
104-
* Fill missing method declaration
105-
*
106-
* @param {string} comment
107-
* @param member
108-
* @param {string} src
109-
* @return {string}
110-
*/
111-
const fillMethodComment = (comment, member, src) => {
112-
if (!comment.includes('@method')) {
113-
comment = appendComment(comment, '@method')
114-
}
115-
if (!comment.includes('@param')) {
116-
comment = convertParams(comment, member, src)
117-
}
118-
if (ts.isArrayTypeNode(member.type)) {
119-
comment = convertMembers(comment, member.type, src)
120-
}
121-
if (!comment.includes('@return')) {
122-
const returnType = getTypeName(member.type, src)
123-
comment = appendComment(comment, `@return {${returnType}}`)
124-
}
125-
return comment
126-
}
127-
128103
/**
129104
* converts function parameters to @params
130105
*

0 commit comments

Comments
 (0)