Skip to content

Commit 4b57173

Browse files
committed
[types] improve types
1 parent 81853b0 commit 4b57173

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

index.d.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import type { TypedArray } from 'is-typed-array';
2-
31
/**
42
* Determines the type of the given collection, or returns false.
53
*
@@ -34,7 +32,18 @@ declare namespace whichTypedArray {
3432
| 'BigInt64Array'
3533
| 'BigUint64Array';
3634

37-
export type { TypedArray };
35+
export type TypedArray =
36+
| Int8Array
37+
| Uint8Array
38+
| Uint8ClampedArray
39+
| Int16Array
40+
| Uint16Array
41+
| Int32Array
42+
| Uint32Array
43+
| Float32Array
44+
| Float64Array
45+
| BigInt64Array
46+
| BigUint64Array;
3847

3948
export type TypedArrayConstructor =
4049
| Int8ArrayConstructor

0 commit comments

Comments
 (0)