Skip to content
Snippets Groups Projects
Commit db3b6aa3 authored by David Sehnal's avatar David Sehnal
Browse files

typedArrayWindow fix

parent 982b18bd
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@ export function isTypedArray(data: any) {
return data.buffer && typeof data.byteLength === 'number' && data.BYTES_PER_ELEMENT;
}
export function typedArrayWindow(data: any, params?: ToArrayParams): ArrayLike<number> {
export function typedArrayWindow(data: any, params?: ToArrayParams): ReadonlyArray<number> {
const { constructor, buffer, length, byteOffset, BYTES_PER_ELEMENT } = data;
const { start, end } = getArrayBounds(length, params);
if (start === 0 && end === length) return data;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment