Skip to content

Commit 8f19ed7

Browse files
feat: format type converter
1 parent ce290e9 commit 8f19ed7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

typescript/type-converter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,12 @@ module.exports = function typeConverter(src, filename = 'test.ts') {
147147
if (jsDocNode) {
148148
let comment = src.substring(jsDocNode.pos, jsDocNode.end)
149149
const name = getName(statement, src)
150-
150+
151151
if (ts.isTypeAliasDeclaration(statement)) {
152152
if (ts.isFunctionTypeNode(statement.type)) {
153153
comment = appendComment(comment, `@typedef {function} ${name}`)
154154
return convertParams(comment, statement, src)
155-
}
155+
}
156156
if (ts.isTypeLiteralNode(statement.type)) {
157157
comment = appendComment(comment, `@typedef {object} ${name}`)
158158
return convertMembers(comment, statement.type, src)

0 commit comments

Comments
 (0)