mh-two-thousand-and-two
2024-04-12 7fc6dbf547b8899d949b67cdec36b96a7d1701c7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import type names from 'possible-typed-array-names';
 
declare function typedArrayLength(value: typedArrayLength.TypedArray): number;
declare function typedArrayLength(value: unknown): false;
 
declare namespace typedArrayLength {
    type TypedArray =
        | Int8Array
        | Uint8Array
        | Uint8ClampedArray
        | Int16Array
        | Uint16Array
        | Int32Array
        | Uint32Array
        | Float32Array
        | Float64Array
        | BigInt64Array
        | BigUint64Array;
 
    type TypedArrayName = typeof names[number];
}
 
export = typedArrayLength;