source: imaps-frontend/node_modules/which-typed-array/index.d.ts

main
Last change on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 5 months ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 2.2 KB
Line 
1/**
2 * Determines the type of the given collection, or returns false.
3 *
4 * @param {unknown} value The potential collection
5 * @returns {TypedArrayName | false | null} 'Int8Array' | 'Uint8Array' | 'Uint8ClampedArray' | 'Int16Array' | 'Uint16Array' | 'Int32Array' | 'Uint32Array' | 'Float32Array' | 'Float64Array' | 'BigInt64Array' | 'BigUint64Array' | false | null
6 */
7declare function whichTypedArray(value: Int8Array): 'Int8Array';
8declare function whichTypedArray(value: Uint8Array): 'Uint8Array';
9declare function whichTypedArray(value: Uint8ClampedArray): 'Uint8ClampedArray';
10declare function whichTypedArray(value: Int16Array): 'Int16Array';
11declare function whichTypedArray(value: Uint16Array): 'Uint16Array';
12declare function whichTypedArray(value: Int32Array): 'Int32Array';
13declare function whichTypedArray(value: Uint32Array): 'Uint32Array';
14declare function whichTypedArray(value: Float32Array): 'Float32Array';
15declare function whichTypedArray(value: Float64Array): 'Float64Array';
16declare function whichTypedArray(value: BigInt64Array): 'BigInt64Array';
17declare function whichTypedArray(value: BigUint64Array): 'BigUint64Array';
18declare function whichTypedArray(value: whichTypedArray.TypedArray): whichTypedArray.TypedArrayName;
19declare function whichTypedArray(value: unknown): false | null;
20
21declare namespace whichTypedArray {
22 export type TypedArrayName =
23 | 'Int8Array'
24 | 'Uint8Array'
25 | 'Uint8ClampedArray'
26 | 'Int16Array'
27 | 'Uint16Array'
28 | 'Int32Array'
29 | 'Uint32Array'
30 | 'Float32Array'
31 | 'Float64Array'
32 | 'BigInt64Array'
33 | 'BigUint64Array';
34
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;
47
48 export type TypedArrayConstructor =
49 | Int8ArrayConstructor
50 | Uint8ArrayConstructor
51 | Uint8ClampedArrayConstructor
52 | Int16ArrayConstructor
53 | Uint16ArrayConstructor
54 | Int32ArrayConstructor
55 | Uint32ArrayConstructor
56 | Float32ArrayConstructor
57 | Float64ArrayConstructor
58 | BigInt64ArrayConstructor
59 | BigUint64ArrayConstructor;
60}
61
62export = whichTypedArray;
Note: See TracBrowser for help on using the repository browser.