Skip to content

Commit d7d9fcd

Browse files
committed
[types] use which-typed-array’s TypedArray type; re-export it
1 parent 94d2f5a commit d7d9fcd

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

index.d.ts

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,9 @@
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 as TA } from "which-typed-array";
132

14-
declare function isTypedArray(value: unknown): value is TypedArray;
3+
declare namespace isTypedArray {
4+
type TypedArray = TA;
5+
}
156

16-
export = isTypedArray;
7+
declare function isTypedArray(value: unknown): value is TA;
8+
9+
export = isTypedArray;

0 commit comments

Comments
 (0)