bj0
11/27/2018, 10:41 PMbuffer
module, trying to import it like this:
@JsModule("buffer/")
external class Buffer : Uint8Array {
companion object {
//static from(arrayBuffer: ArrayBuffer, byteOffset?: number, length?: number): Buffer;
fun from(arrayBuffer: ArrayBuffer, byteOffset: Int = definedExternally, length: Int = definedExternally): Buffer
}
}
but when I try Buffer.from(...)
I get the error $module$buffer_.from is not a function