Skip to content

Commit e4d6163

Browse files
committed
Update Array / Array2.from type
1 parent 1086eb7 commit e4d6163

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pages/docs/manual/latest/api/js/array-2.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ A type used to describe JavaScript objects that are like an array or are iterabl
4747
## from
4848

4949
```res sig
50-
let from: array_like<'a> => array<'b>
50+
let from: array_like<'a> => array<'a>
5151
```
5252

5353
Creates a shallow copy of an array from an array-like object. See [`Array.from`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/from) on MDN.

pages/docs/manual/latest/api/js/array.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ A type used to describe JavaScript objects that are like an array or are iterabl
4848
## from
4949

5050
```res sig
51-
let from: array_like<'a> => array<'b>
51+
let from: array_like<'a> => array<'a>
5252
```
5353

5454
Creates a shallow copy of an array from an array-like object. See [`Array.from`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/from) on MDN.

0 commit comments

Comments
 (0)