Skip to content
This repository was archived by the owner on Nov 13, 2023. It is now read-only.

Commit 1a336f3

Browse files
committed
Fix issue with exportInterfaces and labeled arguments.
Fixes #561
1 parent 7f4f03e commit 1a336f3

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

Changes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# master
22
- Add support for `external-stdlib` in `bsconfig.json`.
3+
- Fix issue with `exportInterfaces` and labeled arguments (see https://github.com/rescript-association/genType/issues/561).
34

45
# 4.0.0
56
- Remove support for legacy components.

src/EmitType.ml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,6 @@ let rec renderType ~config ?(indent = None) ~typeNameIsInterface ~inFunType
178178
argTypes retType
179179
| GroupOfLabeledArgs fields | Object (_, fields) | Record fields ->
180180
let indent1 = fields |> Indent.heuristicFields ~indent in
181-
let config =
182-
match type0 with
183-
| GroupOfLabeledArgs _ -> {config with exportInterfaces = false}
184-
| _ -> config
185-
in
186181
let closedFlag =
187182
match type0 with Object (closedFlag, _) -> closedFlag | _ -> Closed
188183
in

0 commit comments

Comments
 (0)