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 = {
1717 payload ?: constructorPayload ,
1818}
1919
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+
2030@tag ("kind" )
2131type detail =
2232 | @as ("record" ) Record ({items : array <field >})
2333 | @as ("variant" ) Variant ({items : array <constructor >})
34+ | @as ("alias" ) Signature (signatureDetais )
2435
2536type source = {
2637 filepath : string ,
@@ -38,6 +49,8 @@ type rec item =
3849 name : string ,
3950 deprecated ?: string ,
4051 source : source ,
52+ /** Additional documentation of signature, if available. */
53+ detail ?: detail ,
4154 })
4255 | @as ("type" )
4356 Type ({
Original file line number Diff line number Diff line change @@ -16,10 +16,22 @@ type constructor = {
1616 deprecated ?: string ,
1717 payload ?: constructorPayload ,
1818}
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+
1930@tag ("kind" )
2031type detail =
2132 | @as ("record" ) Record ({items : array <field >})
2233 | @as ("variant" ) Variant ({items : array <constructor >})
34+ | @as ("alias" ) Signature (signatureDetais )
2335
2436type source = {
2537 filepath : string ,
@@ -37,6 +49,8 @@ type rec item =
3749 name : string ,
3850 deprecated ?: string ,
3951 source : source ,
52+ /** Additional documentation of signature, if available. */
53+ detail ?: detail ,
4054 })
4155 | @as ("type" )
4256 Type ({
You can’t perform that action at this time.
0 commit comments