Skip to content

Commit bd4e83d

Browse files
authored
Merge pull request #227 from mqklin/patch-1
Update shared-data-types.mdx
2 parents 123ecb5 + 4756e3b commit bd4e83d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/docs/manual/v8.0.0/shared-data-types.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Unlike most compiled-to-js languages, in ReScript, **you don't need to write dat
2525
<!-- TODO: talk about poly variant -->
2626

2727
**Types that are slightly different than JS, but that you can still use from JS**:
28-
- Int. **Ints are 32-bits**! Be careful, you can potentially treat them as JS numbers and vice-versa, but if the number's large, then you better treat JS numbers as floats. For example, we bind to Js.Date using `float`s.
28+
- Int. **Ints are 32-bits**! Be careful, you can potentially treat them as JS numbers and vice-versa, but if the number's large, then you better treat JS numbers as floats. For example, we bind to [`Js.Date`](api/js/date) using `float`s.
2929
- Option. The `option` type's `None` value compiles into JS `undefined`. The `Some` value, e.g. `Some(5)`, compiles to `5`. Likewise, you can treat an incoming JS `undefined` as `None`. **JS `null` isn't handled here**. If your JS value can be `null`, use [Js.Nullable](api/js/nullable) helpers.
3030
- Exception.
3131

0 commit comments

Comments
 (0)