diff --git a/src/Core__Array.res b/src/Core__Array.res index a80a8e10..2c615c5f 100644 --- a/src/Core__Array.res +++ b/src/Core__Array.res @@ -98,7 +98,7 @@ external copyWithin: (array<'a>, ~target: int, ~start: int, ~end: int) => array< @send external shift: array<'a> => option<'a> = "shift" @variadic @send -external splice: (array<'a>, ~start: int, ~remove: int, ~insert: array<'a>) => unit = "splice" +external splice: (array<'a>, ~start: int, ~remove: int, ~insert: array<'a>) => array<'a> = "splice" @variadic @send external toSpliced: (array<'a>, ~start: int, ~remove: int, ~insert: array<'a>) => array<'a> = "toSpliced" diff --git a/src/Core__Array.resi b/src/Core__Array.resi index 529aa9cd..4f27990a 100644 --- a/src/Core__Array.resi +++ b/src/Core__Array.resi @@ -254,7 +254,7 @@ Console.log(someArray) // [1, 2, 3] external sort: (array<'a>, ('a, 'a) => Core__Ordering.t) => unit = "sort" @variadic @send -external splice: (array<'a>, ~start: int, ~remove: int, ~insert: array<'a>) => unit = "splice" +external splice: (array<'a>, ~start: int, ~remove: int, ~insert: array<'a>) => array<'a> = "splice" @variadic @send external toSpliced: (array<'a>, ~start: int, ~remove: int, ~insert: array<'a>) => array<'a> =