Skip to content

Commit 45af478

Browse files
authored
Add setTypedArray and setTypedArrayFrom
1 parent 22ad3f5 commit 45af478

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

runtime/Stdlib_TypedArray.res

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ type t<'a>
1111
@send external setArray: (t<'a>, array<'a>) => unit = "set"
1212
@send external setArrayFrom: (t<'a>, array<'a>, int) => unit = "set"
1313

14+
@send external setTypedArray: (t<'a>, t<'a>) => unit = "set"
15+
@send external setTypedArrayFrom: (t<'a>, t<'a>, int) => unit = "set"
16+
1417
@get external length: t<'a> => int = "length"
1518

1619
@send external copyAllWithin: (t<'a>, ~target: int) => array<'a> = "copyWithin"

0 commit comments

Comments
 (0)