We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdab0b6 commit d11a245Copy full SHA for d11a245
jscomp/others/jsx.ml
@@ -38,8 +38,8 @@ type 'props component = ('props, element) componentLike
38
external component : ('props, element) componentLike -> 'props component
39
= "%identity"
40
41
-let addKeyProp (o : 't) (k : string) =
+let addKeyProp (p : 'props) (k : string) : 'props =
42
(* Use Js_obj.assign, not Js.Obj.assign, otherwise the dependency will not be picked up correctly
43
in the ninja file. *)
44
- Obj.magic (Js_obj.assign (Obj.magic o) [%obj { key = k }])
+ Obj.magic (Js_obj.assign (Obj.magic p) [%obj { key = k }])
45
[@@inline]
0 commit comments