File tree 2 files changed +7
-13
lines changed
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' ;
13
2
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 ;
15
8
16
9
export = typedArrayBuffer ;
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ var $TypeError = require('es-errors/type');
4
4
5
5
var callBound = require ( 'call-bound' ) ;
6
6
7
+ /** @type {undefined | ((thisArg: import('.').TypedArray) => Buffer<ArrayBufferLike>) } */
7
8
var $typedArrayBuffer = callBound ( 'TypedArray.prototype.buffer' , true ) ;
8
9
9
10
var isTypedArray = require ( 'is-typed-array' ) ;
You can’t perform that action at this time.
0 commit comments