File tree Expand file tree Collapse file tree 1 file changed +5
-14
lines changed Expand file tree Collapse file tree 1 file changed +5
-14
lines changed Original file line number Diff line number Diff line change
1
+ import type { TypedArray } from 'is-typed-array' ;
2
+
1
3
/**
2
4
* Determines the type of the given collection, or returns false.
3
5
*
@@ -19,7 +21,7 @@ declare function whichTypedArray(value: whichTypedArray.TypedArray): whichTypedA
19
21
declare function whichTypedArray ( value : unknown ) : false | null ;
20
22
21
23
declare namespace whichTypedArray {
22
- type TypedArrayName =
24
+ export type TypedArrayName =
23
25
| 'Int8Array'
24
26
| 'Uint8Array'
25
27
| 'Uint8ClampedArray'
@@ -32,20 +34,9 @@ declare namespace whichTypedArray {
32
34
| 'BigInt64Array'
33
35
| 'BigUint64Array' ;
34
36
35
- type TypedArray =
36
- | Int8Array
37
- | Uint8Array
38
- | Uint8ClampedArray
39
- | Int16Array
40
- | Uint16Array
41
- | Int32Array
42
- | Uint32Array
43
- | Float32Array
44
- | Float64Array
45
- | BigInt64Array
46
- | BigUint64Array ;
37
+ export type { TypedArray } ;
47
38
48
- type TypedArrayConstructor =
39
+ export type TypedArrayConstructor =
49
40
| Int8ArrayConstructor
50
41
| Uint8ArrayConstructor
51
42
| Uint8ClampedArrayConstructor
You can’t perform that action at this time.
0 commit comments