UNPKG

itk-wasm

Version:

High-performance spatial analysis in a web browser, Node.js, and reproducible execution across programming languages and hardware architectures.

6 lines (5 loc) 409 B
import IntTypes from './interface-types/int-types.js'; import FloatTypes from './interface-types/float-types.js'; import type TypedArray from './typed-array.js'; declare function bufferToTypedArray(wasmType: (typeof IntTypes)[keyof typeof IntTypes] | (typeof FloatTypes)[keyof typeof FloatTypes] | 'null' | null, buffer: ArrayBuffer | SharedArrayBuffer): null | TypedArray; export default bufferToTypedArray;