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

Merge branch 'master' into structure-data-model

parents 7f93938f db3b6aa3
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