File tree 7 files changed +129
-1
lines changed 7 files changed +129
-1
lines changed Original file line number Diff line number Diff line change 24
24
"JSONStream" : " ^0.10.0" ,
25
25
"ast-types" : " ^0.7.2" ,
26
26
"concat-stream" : " ^1.4.7" ,
27
- "doctrine" : " ^0.6.4 " ,
27
+ "doctrine" : " constellation/doctrine#da4635ec2e9cbb4b593b2bd49584defc5843abd8 " ,
28
28
"espree" : " ^1.12.2" ,
29
29
"extend" : " ^2.0.0" ,
30
30
"github-url-from-git" : " ^1.4.0" ,
Original file line number Diff line number Diff line change 51
51
{{ /returns }}
52
52
{{ /if }}
53
53
54
+ {{ #if properties }}
55
+ <p >
56
+ <table class =' table-light overflow-hidden bg-cloudy-light' >
57
+ <thead >
58
+ <th class =' col-3' >property</th >
59
+ <th class =' col-3' >type</th >
60
+ <th class =' col-6' >description</th >
61
+ </thead >
62
+ {{ #properties }}
63
+ <tr >
64
+ <td >{{ name }} </td >
65
+ <td >{{{ format_type type }}} </td >
66
+ <td >{{{ md description }}} </td >
67
+ </tr >
68
+ {{ /properties }}
69
+ </table >
70
+ </p >
71
+ {{ /if }}
72
+
54
73
{{ #if examples }}
55
74
<h4 >Examples</h4 >
56
75
{{ #each examples ~}} <pre >{{{ . }}} </pre >{{ /each }}
Original file line number Diff line number Diff line change @@ -1505,6 +1505,7 @@ section:target {
1505
1505
1506
1506
1507
1507
1508
+
1508
1509
<div class='section-indent'>
1509
1510
<section id='klass/magic-number'class='mt2 mb2 py1 px3 keyline-top'>
1510
1511
<h3 class='regular'>
@@ -1522,6 +1523,7 @@ section:target {
1522
1523
1523
1524
1524
1525
1526
+
1525
1527
</section>
1526
1528
</div>
1527
1529
<div class='section-indent'>
@@ -1564,6 +1566,7 @@ This is a <a href="doesnot"><code>link to something that does not exist</code></
1564
1566
1565
1567
1566
1568
1569
+
1567
1570
</section>
1568
1571
</div>
1569
1572
@@ -1588,6 +1591,7 @@ This is a <a href="doesnot"><code>link to something that does not exist</code></
1588
1591
1589
1592
</span>
1590
1593
1594
+
1591
1595
<h4>Examples</h4>
1592
1596
<pre>foo.getFoo();</pre>
1593
1597
@@ -1622,6 +1626,7 @@ like a <a href="klass"><code>klass</code></a></p>
1622
1626
1623
1627
1624
1628
1629
+
1625
1630
</section>
1626
1631
1627
1632
</div>
Original file line number Diff line number Diff line change
1
+ /**
2
+ * A type definition.
3
+ * @name MyType
4
+ * @typedef {Object } MyType
5
+ * @property {number } prop1 - one property
6
+ * @property {string } prop2 - another property
7
+ */
8
+
Original file line number Diff line number Diff line change
1
+ ## ` MyType `
2
+
3
+ A type definition.
4
+
5
+
6
+
Original file line number Diff line number Diff line change
1
+ [
2
+ {
3
+ "description" : " A type definition." ,
4
+ "tags" : [
5
+ {
6
+ "title" : " name" ,
7
+ "description" : null ,
8
+ "name" : " MyType"
9
+ },
10
+ {
11
+ "title" : " typedef" ,
12
+ "description" : null ,
13
+ "type" : {
14
+ "type" : " NameExpression" ,
15
+ "name" : " Object"
16
+ },
17
+ "name" : " MyType"
18
+ },
19
+ {
20
+ "title" : " property" ,
21
+ "description" : " one property" ,
22
+ "type" : {
23
+ "type" : " NameExpression" ,
24
+ "name" : " number"
25
+ },
26
+ "name" : " prop1"
27
+ },
28
+ {
29
+ "title" : " property" ,
30
+ "description" : " another property" ,
31
+ "type" : {
32
+ "type" : " NameExpression" ,
33
+ "name" : " string"
34
+ },
35
+ "name" : " prop2"
36
+ },
37
+ {
38
+ "title" : " kind" ,
39
+ "kind" : " typedef"
40
+ }
41
+ ],
42
+ "context" : {
43
+ "loc" : {
44
+ "start" : {
45
+ "line" : 9 ,
46
+ "column" : 0
47
+ },
48
+ "end" : {
49
+ "line" : 9 ,
50
+ "column" : 0
51
+ }
52
+ },
53
+ "file" : " fixture/typedef.input.js"
54
+ },
55
+ "name" : " MyType" ,
56
+ "properties" : [
57
+ {
58
+ "title" : " property" ,
59
+ "description" : " one property" ,
60
+ "type" : {
61
+ "type" : " NameExpression" ,
62
+ "name" : " number"
63
+ },
64
+ "name" : " prop1"
65
+ },
66
+ {
67
+ "title" : " property" ,
68
+ "description" : " another property" ,
69
+ "type" : {
70
+ "type" : " NameExpression" ,
71
+ "name" : " string"
72
+ },
73
+ "name" : " prop2"
74
+ }
75
+ ],
76
+ "kind" : " typedef"
77
+ }
78
+ ]
Original file line number Diff line number Diff line change
1
+ ## ` MyType `
2
+
3
+ A type definition.
4
+
5
+
6
+ | name | type | description |
7
+ | ---- | ---- | ----------- |
8
+ | ` prop1 ` | ` number ` | one property |
9
+ | ` prop2 ` | ` string ` | another property |
10
+
11
+
12
+
You can’t perform that action at this time.
0 commit comments