1 | // Type definitions for is-typedarray 1.0
|
2 | // Project: https://github.com/hughsk/is-typedarray
|
3 | // Definitions by: BendingBender <https://github.com/BendingBender>
|
4 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
5 | // TypeScript Version: 2.1
|
6 |
|
7 | /// <reference types="node" />
|
8 |
|
9 | export = isTypedArray;
|
10 |
|
11 | declare function isTypedArray(candidate: any): candidate is isTypedArray.TypedArray;
|
12 |
|
13 | declare namespace isTypedArray {
|
14 | function strict(candidate: any): candidate is TypedArray;
|
15 | function loose(candidate: any): candidate is TypedArray;
|
16 |
|
17 | type TypedArray =
|
18 | | Int8Array
|
19 | | Int16Array
|
20 | | Int32Array
|
21 | | Uint8Array
|
22 | | Uint8ClampedArray
|
23 | | Uint16Array
|
24 | | Uint32Array
|
25 | | Float32Array
|
26 | | Float64Array
|
27 | | Buffer;
|
28 | }
|