File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -17,10 +17,21 @@ type constructor = {
17
17
payload ?: constructorPayload ,
18
18
}
19
19
20
+ type rec typeInSignature = {
21
+ path : string ,
22
+ genericTypeParameters : array <typeInSignature >,
23
+ }
24
+
25
+ type signatureDetais = {
26
+ parameters : array <typeInSignature >,
27
+ returnType : typeInSignature ,
28
+ }
29
+
20
30
@tag ("kind" )
21
31
type detail =
22
32
| @as ("record" ) Record ({items : array <field >})
23
33
| @as ("variant" ) Variant ({items : array <constructor >})
34
+ | @as ("alias" ) Signature (signatureDetais )
24
35
25
36
type source = {
26
37
filepath : string ,
@@ -38,6 +49,8 @@ type rec item =
38
49
name : string ,
39
50
deprecated ?: string ,
40
51
source : source ,
52
+ /** Additional documentation of signature, if available. */
53
+ detail ?: detail ,
41
54
})
42
55
| @as ("type" )
43
56
Type ({
Original file line number Diff line number Diff line change @@ -16,10 +16,22 @@ type constructor = {
16
16
deprecated ?: string ,
17
17
payload ?: constructorPayload ,
18
18
}
19
+
20
+ type rec typeInSignature = {
21
+ path : string ,
22
+ genericTypeParameters : array <typeInSignature >,
23
+ }
24
+
25
+ type signatureDetais = {
26
+ parameters : array <typeInSignature >,
27
+ returnType : typeInSignature ,
28
+ }
29
+
19
30
@tag ("kind" )
20
31
type detail =
21
32
| @as ("record" ) Record ({items : array <field >})
22
33
| @as ("variant" ) Variant ({items : array <constructor >})
34
+ | @as ("alias" ) Signature (signatureDetais )
23
35
24
36
type source = {
25
37
filepath : string ,
@@ -37,6 +49,8 @@ type rec item =
37
49
name : string ,
38
50
deprecated ?: string ,
39
51
source : source ,
52
+ /** Additional documentation of signature, if available. */
53
+ detail ?: detail ,
40
54
})
41
55
| @as ("type" )
42
56
Type ({
You can’t perform that action at this time.
0 commit comments