File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -331,6 +331,9 @@ declare class CanvasView extends View {
331331export function createImage ( options : { width : number ; height : number ; scale ?: number ; config ?: any } ) : ImageSource ;
332332export function releaseImage ( image : ImageSource ) ;
333333
334- export function createArrayBuffer ( length : number , useInts ?) : Float32Array | Int8Array | Float64Array ;
335- export function pointsFromBuffer ( typedArray : Float32Array | Int8Array , useInts ?) : number [ ] ;
334+
335+ export type FloatArray = Float32Array | Float64Array | Uint8Array ;
336+ export type TypedArray = FloatArray | Uint8Array ;
337+ export function createArrayBuffer ( length : number , useInts ?) : TypedArray ;
338+ export function pointsFromBuffer ( typedArray : TypedArray , useInts ?) : number [ ] | TypedArray ;
336339export function arrayToNativeArray ( array , useInts ?) : number [ ] ;
You can’t perform that action at this time.
0 commit comments