Closed
Description
assemblyscript/std/assembly/index.d.ts
Line 1224 in ce0457e
@MaxGraey looks like you changed this to return a ArrayBufferView in #865. So you dont get intellisense if you wrap a ArrayBuffer in a typed array unless you cast/assert it back.
let buf=new ArrayBuffer(32)
let arr=Uint8Array.wrap(buf) //<-type is ArrayBufferView
let l=arr.length //<-fails
let l=(arr as Uint8Array).length //<-works
I was going to PR but I figured i should ask if there was a reason first.