diff --git a/index.js b/index.js index 4d8309e..08583c9 100644 --- a/index.js +++ b/index.js @@ -224,6 +224,7 @@ function jsdocCommentFound(e) { if (!typeDefsSet) return; e.comment = e.comment.replace(typeRegex, (typeExpr) => { + typeExpr = typeExpr.replace(/\[["'](.*)['"]\]/g, ".$1"); return typeExpr.replace(identifiers, (identifier) => { return (fileInfo.moduleId && typeDefsSet.has(identifier)) ? `module:${fileInfo.moduleId}~${identifier}` :