Skip to content

Commit 7598d86

Browse files
author
Kevan Stannard
committed
Update string and int decorators
1 parent 0be5313 commit 7598d86

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

misc_docs/syntax/decorator_int.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,8 @@ setStatus(2);
2828

2929
</CodeTab>
3030

31+
### References
32+
33+
* [Constrain Arguments Better](/docs/manual/latest/bind-to-js-function#constrain-arguments-better)
34+
3135

misc_docs/syntax/decorator_string.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ category: "decorators"
88

99
The `@string` decorator can be used with [polymorphic variants](/docs/manual/latest/polymorphic-variant) and the `@as` decorator on *externals* to modify the string values used for the variants in the compiled JavaScript.
1010

11-
For example:
11+
### Example
1212

1313
<CodeTab labels={["ReScript", "JS Output"]}>
1414

@@ -27,3 +27,7 @@ setStatus("NOT_STARTED");
2727
```
2828

2929
</CodeTab>
30+
31+
### References
32+
33+
* [Constrain Arguments Better](/docs/manual/latest/bind-to-js-function#constrain-arguments-better)

0 commit comments

Comments
 (0)