You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: misc_docs/syntax/decorator_obj.mdx
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,9 @@ summary: "This is the `@obj` decorator."
6
6
category: "decorators"
7
7
---
8
8
9
+
10
+
> Deprecated since compiler version 11.0. It was mainly used to bind to JS param objects with many optional fields, [records with optional fields](https://rescript-lang.org/docs/manual/latest/record#optional-record-fields) are now natively supported.
11
+
9
12
The `@obj` decorator is used to create functions that return JavaScript objects
10
13
with properties that match the function's parameter labels.
11
14
@@ -30,4 +33,4 @@ var helloAction = {
30
33
31
34
### References
32
35
33
-
*[Convert External into JS Object Creation Function](/docs/manual/latest/generate-converters-accessors#convert-external-into-js-object-creation-function)
36
+
*[Convert External into JS Object Creation Function](/docs/manual/v10.0.0/generate-converters-accessors#convert-external-into-js-object-creation-function)
0 commit comments