Skip to content

Commit 430d44e

Browse files
committed
rename
1 parent 786380f commit 430d44e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

analysis/src/DocExtraction.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ let stringifyDetail ?(indentation = 0) (detail : docItemDetail) =
118118
Some (stringifyDocstrings constructorDoc.docstrings) );
119119
( "signature",
120120
Some (wrapInQuotes constructorDoc.signature) );
121-
( "items",
121+
( "payload",
122122
match constructorDoc.items with
123123
| None -> None
124124
| Some constructorPayload ->

analysis/tests/src/expected/DocExtractionRes.res.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ extracting docs for src/DocExtractionRes.res
137137
"name": "SomeStuff",
138138
"docstrings": ["This has inline records..."],
139139
"signature": "SomeStuff({offline: bool, online?: bool})",
140-
"items": {
140+
"payload": {
141141
"kind": "inlineRecord",
142142
"fields": [{
143143
"name": "offline",

tools/src/Tools_Docgen.res

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type constructor = {
1414
docstrings: array<string>,
1515
signature: string,
1616
deprecated?: string,
17-
constructorPayload?: constructorPayload,
17+
payload?: constructorPayload,
1818
}
1919

2020
@tag("kind")

tools/src/Tools_Docgen.resi

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type constructor = {
1414
docstrings: array<string>,
1515
signature: string,
1616
deprecated?: string,
17-
constructorPayload?: constructorPayload,
17+
payload?: constructorPayload,
1818
}
1919
@tag("kind")
2020
type detail =

0 commit comments

Comments
 (0)