|
50 | 50 | "id": "DocExtractionRes.SomeInnerModule",
|
51 | 51 | "name": "SomeInnerModule",
|
52 | 52 | "kind": "module",
|
| 53 | + "docstrings": ["Another module level docstring here."], |
53 | 54 | "items": [
|
54 | 55 | {
|
55 | 56 | "id": "DocExtractionRes.SomeInnerModule.status",
|
|
97 | 98 | "id": "DocExtractionRes.AnotherModule",
|
98 | 99 | "name": "AnotherModule",
|
99 | 100 | "kind": "module",
|
| 101 | + "docstrings": ["Mighty fine module here too!"], |
100 | 102 | "items": [
|
101 | 103 | {
|
102 | 104 | "id": "DocExtractionRes.LinkedModule",
|
|
123 | 125 | "id": "DocExtractionRes.AnotherModule.someVariantWithInlineRecords",
|
124 | 126 | "kind": "type",
|
125 | 127 | "name": "someVariantWithInlineRecords",
|
126 |
| - "signature": "type someVariantWithInlineRecords =\n | SomeStuff({offline: bool})", |
| 128 | + "signature": "type someVariantWithInlineRecords =\n | SomeStuff({offline: bool, online?: bool})", |
127 | 129 | "docstrings": ["Trying how it looks with an inline record in a variant."],
|
128 | 130 | "detail":
|
129 | 131 | {
|
|
132 | 134 | {
|
133 | 135 | "name": "SomeStuff",
|
134 | 136 | "docstrings": ["This has inline records..."],
|
135 |
| - "signature": "SomeStuff" |
| 137 | + "signature": "SomeStuff({offline: bool, online?: bool})", |
| 138 | + "payload": { |
| 139 | + "kind": "inlineRecord", |
| 140 | + "fields": [{ |
| 141 | + "name": "offline", |
| 142 | + "optional": false, |
| 143 | + "docstrings": [], |
| 144 | + "signature": "bool" |
| 145 | + }, { |
| 146 | + "name": "online", |
| 147 | + "optional": true, |
| 148 | + "docstrings": ["Is the user online?"], |
| 149 | + "signature": "option<bool>" |
| 150 | + }] |
| 151 | + } |
136 | 152 | }]
|
137 | 153 | }
|
138 | 154 | },
|
|
148 | 164 | "id": "DocExtractionRes.ModuleWithThingsThatShouldNotBeExported",
|
149 | 165 | "name": "ModuleWithThingsThatShouldNotBeExported",
|
150 | 166 | "kind": "module",
|
| 167 | + "docstrings": [], |
151 | 168 | "items": [
|
152 | 169 | {
|
153 | 170 | "id": "DocExtractionRes.ModuleWithThingsThatShouldNotBeExported.t",
|
|
0 commit comments