Skip to content

Commit 39efefb

Browse files
committed
Update to doctrine-0.7.0
1 parent efd5b4c commit 39efefb

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

lib/flatten.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ var flatteners = {
3636
'member': flattenTypedName,
3737
'module': flattenTypedName,
3838
'namespace': flattenTypedName,
39+
'typedef': flattenTypedName,
3940
'kind': function (result, tag) {
4041
result.kind = tag.kind;
4142
},
@@ -98,12 +99,6 @@ var flatteners = {
9899
},
99100
'private': function (result) {
100101
result.access = 'private';
101-
},
102-
'typedef': function (result, tag) {
103-
result.typedef = {
104-
name: tag.description,
105-
type: tag.type
106-
};
107102
}
108103
};
109104

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"babylon": "^5.8.23",
2121
"brfs": "^1.4.0",
2222
"concat-stream": "^1.5.0",
23-
"doctrine": "^0.6.4",
23+
"doctrine": "^0.7.0",
2424
"documentation-theme-default": "^1.0.0-alpha2",
2525
"extend": "^3.0.0",
2626
"get-comments": "^1.0.1",

test/fixture/typedef.output.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@
1010
},
1111
{
1212
"title": "typedef",
13-
"description": "MyType",
13+
"description": null,
1414
"lineNumber": 3,
1515
"type": {
1616
"type": "NameExpression",
1717
"name": "Object"
18-
}
18+
},
19+
"name": "MyType"
1920
},
2021
{
2122
"title": "property",

0 commit comments

Comments
 (0)