@@ -163,7 +163,6 @@ let translateConstr ~config ~paramsTranslation ~(path : Path.t) ~typeEnv =
163
163
argTypes = [{aName = " " ; aType = fromTranslation.type_}];
164
164
retType = toTranslation.type_;
165
165
typeVars = [] ;
166
- uncurried = false ;
167
166
};
168
167
}
169
168
| ( ([" React" ; " componentLike" ] | [" ReactV3" ; " React" ; " componentLike" ]),
@@ -176,7 +175,6 @@ let translateConstr ~config ~paramsTranslation ~(path : Path.t) ~typeEnv =
176
175
argTypes = [{aName = " " ; aType = propsTranslation.type_}];
177
176
retType = retTranslation.type_;
178
177
typeVars = [] ;
179
- uncurried = false ;
180
178
};
181
179
}
182
180
| ( ([" React" ; " component" ] | [" ReactV3" ; " React" ; " component" ]),
@@ -189,7 +187,6 @@ let translateConstr ~config ~paramsTranslation ~(path : Path.t) ~typeEnv =
189
187
argTypes = [{aName = " " ; aType = propsTranslation.type_}];
190
188
retType = EmitType. typeReactElement;
191
189
typeVars = [] ;
192
- uncurried = false ;
193
190
};
194
191
}
195
192
| ( ([" React" ; " Context" ; " t" ] | [" ReactV3" ; " React" ; " Context" ; " t" ]),
@@ -243,13 +240,7 @@ let translateConstr ~config ~paramsTranslation ~(path : Path.t) ~typeEnv =
243
240
| ([" Js" ; " Dict" ; " t" ] | [" Dict" ; " t" ]), [paramTranslation] ->
244
241
{paramTranslation with type_ = Dict paramTranslation.type_}
245
242
| [" function$" ], [arg; _arity] ->
246
- {
247
- dependencies = arg.dependencies;
248
- type_ =
249
- (match arg.type_ with
250
- | Function function_ -> Function {function_ with uncurried = true }
251
- | _ -> arg.type_);
252
- }
243
+ {dependencies = arg.dependencies; type_ = arg.type_}
253
244
| _ -> defaultCase ()
254
245
255
246
type processVariant = {
@@ -324,9 +315,7 @@ let rec translateArrowType ~config ~typeVarsGen ~typeEnv ~revArgDeps ~revArgs
324
315
let allDeps = List. rev_append revArgDeps dependencies in
325
316
let labeledConvertableTypes = revArgs |> List. rev in
326
317
let argTypes = labeledConvertableTypes |> NamedArgs. group in
327
- let functionType =
328
- Function {argTypes; retType; typeVars = [] ; uncurried = false }
329
- in
318
+ let functionType = Function {argTypes; retType; typeVars = [] } in
330
319
{dependencies = allDeps; type_ = functionType}
331
320
332
321
and translateTypeExprFromTypes_ ~config ~typeVarsGen ~typeEnv
0 commit comments