File tree Expand file tree Collapse file tree 2 files changed +7
-13
lines changed Expand file tree Collapse file tree 2 files changed +7
-13
lines changed Original file line number Diff line number Diff line change 1- type TypedArray =
2- | Int8Array
3- | Uint8Array
4- | Uint8ClampedArray
5- | Int16Array
6- | Uint16Array
7- | Int32Array
8- | Uint32Array
9- | Float32Array
10- | Float64Array
11- | BigInt64Array
12- | BigUint64Array ;
1+ import type { TypedArray } from 'is-typed-array' ;
132
14- declare function typedArrayBuffer ( x : TypedArray ) : ArrayBuffer ;
3+ declare namespace typedArrayBuffer {
4+ export type { TypedArray } ;
5+ }
6+
7+ declare function typedArrayBuffer ( x : typedArrayBuffer . TypedArray ) : ArrayBuffer ;
158
169export = typedArrayBuffer ;
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ var $TypeError = require('es-errors/type');
44
55var callBound = require ( 'call-bound' ) ;
66
7+ /** @type {undefined | ((thisArg: import('.').TypedArray) => Buffer<ArrayBufferLike>) } */
78var $typedArrayBuffer = callBound ( 'TypedArray.prototype.buffer' , true ) ;
89
910var isTypedArray = require ( 'is-typed-array' ) ;
You can’t perform that action at this time.
0 commit comments