UNPKG

542 BTypeScriptView Raw
1/// <reference types="node" />
2
3export = isTypedArray;
4
5declare function isTypedArray(candidate: any): candidate is isTypedArray.TypedArray;
6
7declare namespace isTypedArray {
8 function strict(candidate: any): candidate is TypedArray;
9 function loose(candidate: any): candidate is TypedArray;
10
11 type TypedArray =
12 | Int8Array
13 | Int16Array
14 | Int32Array
15 | Uint8Array
16 | Uint8ClampedArray
17 | Uint16Array
18 | Uint32Array
19 | Float32Array
20 | Float64Array
21 | Buffer;
22}