Skip to content

Commit 91ea5d8

Browse files
Merge branch 'master' into predict-ts-functions-types
2 parents 5fd357a + 332fedb commit 91ea5d8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "better-docs",
3-
"version": "2.6.0",
3+
"version": "2.6.1",
44
"description": "JSdoc theme",
55
"repository": "github:SoftwareBrothers/better-docs",
66
"main": "publish.js",

typescript/type-converter.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const appendComment = (commentBlock, toAppend) => {
1212
* @returns {string} node type
1313
*/
1414
const getTypeName = (type, src) => {
15+
if(!type) { return ''}
1516
if (type.typeName && type.typeName.escapedText) {
1617
const typeName = type.typeName.escapedText
1718
if(type.typeArguments && type.typeArguments.length) {

0 commit comments

Comments
 (0)