Skip to content

Commit 1e14581

Browse files
committed
Update ReScript bindings
1 parent 47c4f79 commit 1e14581

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

tools/npm/Tools_Docgen.res

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff 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")
2131
type detail =
2232
| @as("record") Record({items: array<field>})
2333
| @as("variant") Variant({items: array<constructor>})
34+
| @as("alias") Signature(signatureDetais)
2435

2536
type 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({

tools/npm/Tools_Docgen.resi

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff 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")
2031
type detail =
2132
| @as("record") Record({items: array<field>})
2233
| @as("variant") Variant({items: array<constructor>})
34+
| @as("alias") Signature(signatureDetais)
2335

2436
type 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({

0 commit comments

Comments
 (0)